[Lldb-commits] [lldb] r190875 - Don't output a stray 0x if GetData fails for memory read -f hex
Ed Maste
emaste at freebsd.org
Tue Sep 17 10:54:45 PDT 2013
Author: emaste
Date: Tue Sep 17 12:54:45 2013
New Revision: 190875
URL: http://llvm.org/viewvc/llvm-project?rev=190875&view=rev
Log:
Don't output a stray 0x if GetData fails for memory read -f hex
Modified:
lldb/trunk/source/Core/DataExtractor.cpp
Modified: lldb/trunk/source/Core/DataExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/DataExtractor.cpp?rev=190875&r1=190874&r2=190875&view=diff
==============================================================================
--- lldb/trunk/source/Core/DataExtractor.cpp (original)
+++ lldb/trunk/source/Core/DataExtractor.cpp Tue Sep 17 12:54:45 2013
@@ -1714,10 +1714,10 @@ DataExtractor::Dump (Stream *s,
default:
{
assert (item_bit_size == 0 && item_bit_offset == 0);
- s->PutCString("0x");
const uint8_t *bytes = (const uint8_t* )GetData(&offset, item_byte_size);
if (bytes)
{
+ s->PutCString("0x");
uint32_t idx;
if (m_byte_order == eByteOrderBig)
{
More information about the lldb-commits
mailing list