forked from OSchip/llvm-project
<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
This commit is contained in:
parent
93e2861b81
commit
98f134835f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue