[llvm-commits] CVS: llvm/tools/llvm-db/CLIDebugger.cpp Commands.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 25 22:46:31 PDT 2004
Changes in directory llvm/tools/llvm-db:
CLIDebugger.cpp updated: 1.3 -> 1.4
Commands.cpp updated: 1.5 -> 1.6
---
Log message:
Improve help output from llvm-db 'info' command. Patch contributed by
Michael McCracken!
---
Diffs of the changes: (+9 -3)
Index: llvm/tools/llvm-db/CLIDebugger.cpp
diff -u llvm/tools/llvm-db/CLIDebugger.cpp:1.3 llvm/tools/llvm-db/CLIDebugger.cpp:1.4
--- llvm/tools/llvm-db/CLIDebugger.cpp:1.3 Wed Sep 1 17:55:37 2004
+++ llvm/tools/llvm-db/CLIDebugger.cpp Tue Oct 26 00:46:17 2004
@@ -125,7 +125,10 @@
//
addCommand("info", new BuiltinCLICommand(
"Generic command for showing things about the program being debugged",
- "FIXME: document\n",
+ "info functions: display information about functions in the program.\ninfo"
+ " source : display information about the current source file.\ninfo source"
+ "s : Display source file names for the program\ninfo target : print status"
+ " of inferior process\n",
&CLIDebugger::infoCommand));
addCommand("list", C = new BuiltinCLICommand(
Index: llvm/tools/llvm-db/Commands.cpp
diff -u llvm/tools/llvm-db/Commands.cpp:1.5 llvm/tools/llvm-db/Commands.cpp:1.6
--- llvm/tools/llvm-db/Commands.cpp:1.5 Wed Sep 1 17:55:37 2004
+++ llvm/tools/llvm-db/Commands.cpp Tue Oct 26 00:46:17 2004
@@ -505,8 +505,11 @@
void CLIDebugger::infoCommand(std::string &Options) {
std::string What = getToken(Options);
- if (What.empty() || !getToken(Options).empty())
- throw "info command expects exactly one argument.";
+ if (What.empty() || !getToken(Options).empty()){
+ std::string infoStr("info");
+ helpCommand(infoStr);
+ return;
+ }
if (What == "frame") {
} else if (What == "functions") {
More information about the llvm-commits
mailing list