summaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/OptionGroupFormat.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-10-11 22:09:26 +0000
committerEnrico Granata <egranata@apple.com>2013-10-11 22:09:26 +0000
commit98f134835f9f3081902a952277884ef8b802e951 (patch)
tree735b0c58f013528691a6ecd33bf5ff9232801695 /lldb/source/Interpreter/OptionGroupFormat.cpp
parent93e2861b8100c91f97c0d95364ab6a368d22d9a2 (diff)
<rdar://problem/15192088>
gdb-format a (as in p/a) would fail as it needed to set a byte size (unsurprisingly enough) This should be acknowledged by the condition check and not cause a failure llvm-svn: 192511
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupFormat.cpp')
-rw-r--r--lldb/source/Interpreter/OptionGroupFormat.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/OptionGroupFormat.cpp b/lldb/source/Interpreter/OptionGroupFormat.cpp
index 4e14248499f2..5cae3788f3bf 100644
--- a/lldb/source/Interpreter/OptionGroupFormat.cpp
+++ b/lldb/source/Interpreter/OptionGroupFormat.cpp
@@ -158,7 +158,9 @@ OptionGroupFormat::SetOptionValue (CommandInterpreter &interpreter,
else
{
// Byte size is disabled, make sure it wasn't specified
- if (byte_size > 0)
+ // but if this is an address, it's actually necessary to
+ // specify one so don't error out
+ if (byte_size > 0 && format != lldb::eFormatAddressInfo)
{
error.SetErrorString ("this command doesn't support specifying a byte size");
return error;