From 98f134835f9f3081902a952277884ef8b802e951 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Fri, 11 Oct 2013 22:09:26 +0000 Subject: [PATCH] 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 --- lldb/source/Interpreter/OptionGroupFormat.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;