<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:
Enrico Granata 2013-10-11 22:09:26 +00:00
parent 93e2861b81
commit 98f134835f
1 changed files with 3 additions and 1 deletions

View File

@ -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;