llvm.org GIT mirror llvm / 395236f
Improve help output from llvm-db 'info' command. Patch contributed by Michael McCracken! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17241 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
2 changed file(s) with 9 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
124124 //
125125 addCommand("info", new BuiltinCLICommand(
126126 "Generic command for showing things about the program being debugged",
127 "FIXME: document\n",
127 "info functions: display information about functions in the program.\ninfo"
128 " source : display information about the current source file.\ninfo source"
129 "s : Display source file names for the program\ninfo target : print status"
130 " of inferior process\n",
128131 &CLIDebugger::infoCommand));
129132
130133 addCommand("list", C = new BuiltinCLICommand(
504504 void CLIDebugger::infoCommand(std::string &Options) {
505505 std::string What = getToken(Options);
506506
507 if (What.empty() || !getToken(Options).empty())
508 throw "info command expects exactly one argument.";
507 if (What.empty() || !getToken(Options).empty()){
508 std::string infoStr("info");
509 helpCommand(infoStr);
510 return;
511 }
509512
510513 if (What == "frame") {
511514 } else if (What == "functions") {