forked from OSchip/llvm-project
Improve help output from llvm-db 'info' command. Patch contributed by
Michael McCracken! llvm-svn: 17241
This commit is contained in:
parent
47b9d33f5b
commit
3939800123
|
@ -125,7 +125,10 @@ CLIDebugger::CLIDebugger()
|
||||||
//
|
//
|
||||||
addCommand("info", new BuiltinCLICommand(
|
addCommand("info", new BuiltinCLICommand(
|
||||||
"Generic command for showing things about the program being debugged",
|
"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));
|
&CLIDebugger::infoCommand));
|
||||||
|
|
||||||
addCommand("list", C = new BuiltinCLICommand(
|
addCommand("list", C = new BuiltinCLICommand(
|
||||||
|
|
|
@ -505,8 +505,11 @@ void CLIDebugger::breakCommand(std::string &Options) {
|
||||||
void CLIDebugger::infoCommand(std::string &Options) {
|
void CLIDebugger::infoCommand(std::string &Options) {
|
||||||
std::string What = getToken(Options);
|
std::string What = getToken(Options);
|
||||||
|
|
||||||
if (What.empty() || !getToken(Options).empty())
|
if (What.empty() || !getToken(Options).empty()){
|
||||||
throw "info command expects exactly one argument.";
|
std::string infoStr("info");
|
||||||
|
helpCommand(infoStr);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (What == "frame") {
|
if (What == "frame") {
|
||||||
} else if (What == "functions") {
|
} else if (What == "functions") {
|
||||||
|
|
Loading…
Reference in New Issue