1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Improve help output from llvm-db 'info' command. Patch contributed by

Michael McCracken!

llvm-svn: 17241
This commit is contained in:
Chris Lattner 2004-10-26 05:46:17 +00:00
parent 7c3c97af10
commit 49cb4d0a92
2 changed files with 9 additions and 3 deletions

View File

@ -125,7 +125,10 @@ CLIDebugger::CLIDebugger()
//
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(

View File

@ -505,8 +505,11 @@ void CLIDebugger::breakCommand(std::string &Options) {
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") {