diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-10-08 17:21:27 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-10-08 17:21:27 +0000 |
commit | 65045f216817dba87f45fa105bf76ae05b21c02e (patch) | |
tree | 1620444034c0fb95dddeb03ec2ab1667fe33e95b /lldb/source/Commands/CommandObjectHelp.cpp | |
parent | dd1c289a6af5e2955fae6e33c790a1360755cc3a (diff) | |
download | llvm-65045f216817dba87f45fa105bf76ae05b21c02e.zip llvm-65045f216817dba87f45fa105bf76ae05b21c02e.tar.gz llvm-65045f216817dba87f45fa105bf76ae05b21c02e.tar.bz2 |
o TestStdCXXDisassembly.py:
Update the expected match string.
o lldbtest.py:
Indicate when a command fails, even if there is nothing in the error stream.
o TestHelp.py:
Add a regression test case for 'help image dump symtab'.
o CommandObjectHelp.cpp:
Some of the logic branches with successful help command results were not tagged
with a Success Status. They are fixed now. This is important for Python
interaction.
llvm-svn: 116062
Diffstat (limited to 'lldb/source/Commands/CommandObjectHelp.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectHelp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectHelp.cpp b/lldb/source/Commands/CommandObjectHelp.cpp index ff6663986..c7aa2b4 100644 --- a/lldb/source/Commands/CommandObjectHelp.cpp +++ b/lldb/source/Commands/CommandObjectHelp.cpp @@ -121,6 +121,8 @@ CommandObjectHelp::Execute (Args& command, CommandReturnObject &result) if ((long_help != NULL) && (strlen (long_help) > 0)) output_strm.Printf ("\n%s", long_help); + // Mark this help command with a success status. + result.SetStatus (eReturnStatusSuccessFinishNoResult); } else if (sub_cmd_obj->IsMultiwordObject()) { @@ -149,6 +151,8 @@ CommandObjectHelp::Execute (Args& command, CommandReturnObject &result) else m_interpreter.OutputFormattedHelpText (output_strm, "", "", sub_cmd_obj->GetHelp(), 1); output_strm.Printf ("\nSyntax: %s\n", sub_cmd_obj->GetSyntax()); + // Mark this help command with a success status. + result.SetStatus (eReturnStatusSuccessFinishNoResult); } } } |