diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-10-26 04:32:38 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-10-26 04:32:38 +0000 |
| commit | 82f4cf46aa52e927e734f05d46b3c4696dca9b47 (patch) | |
| tree | 8580ee33b169b53a94521e6ef3129cdd1c8efb92 /lldb/source/Interpreter/OptionGroupFormat.cpp | |
| parent | c902d13653d21e6a44400f03413aa84c0877bbc9 (diff) | |
A simple fix for the GDB format strings so the byte size parameter gets
properly marked as valid.
Also modified the "memory read" command to be able to intelligently repeat
subsequent memory requests, so now you can do:
(lldb) memory read --format hex --count 32 0x1000
Then hit enter to keep viewing the memory that follows the last valid request.
llvm-svn: 143015
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupFormat.cpp')
| -rw-r--r-- | lldb/source/Interpreter/OptionGroupFormat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/OptionGroupFormat.cpp b/lldb/source/Interpreter/OptionGroupFormat.cpp index 7dc81540ebde..9ac603a436a1 100644 --- a/lldb/source/Interpreter/OptionGroupFormat.cpp +++ b/lldb/source/Interpreter/OptionGroupFormat.cpp @@ -123,7 +123,7 @@ OptionGroupFormat::SetOptionValue (CommandInterpreter &interpreter, ++gdb_format_cstr; uint32_t byte_size = SetByteSizeUsingGDBSizeLetter (gdb_format_cstr[0]); - if (byte_size == 0) + if (byte_size > 0) ++gdb_format_cstr; // We the first character of the "gdb_format_cstr" is not the |
