debugger: fix the last two commits

This commit is contained in:
hjk
2010-01-06 18:00:59 +01:00
parent cc79467d00
commit cf010f764a
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ def cleanAddress(addr):
# ~"0xbffff0e7 \"\\001\\b\\361\\377\\277\\\\\\206\\004\\b\"\n"
# we need to remove the trailing rubbish
pos = addr.find(' ')
if pos == -1
if pos == -1:
return addr
return addr[0:pos]
@@ -394,7 +394,7 @@ class FrameCommand(gdb.Command):
# A "normal" local variable or parameter
d.beginHash()
d.put('iname="%s",' % item.iname)
d.put('addr="%s",' % cleanAddress(item.value.address))
d.put('addr="%s",' % cleanAddress(str(item.value.address)))
d.safePutItemHelper(item)
d.endHash()

View File

@@ -89,7 +89,7 @@ public:
{ parent = 0; }
void setData(const WatchData &data)
{ static_cast<WatchData &>(*this) = data; parent = 0; }
{ static_cast<WatchData &>(*this) = data; }
WatchItem *parent;
QList<WatchItem *> children; // fetched children