Commit 24b4c127 authored by hjk's avatar hjk

debugger: fix assignment to typedef'd values in locals view

Change-Id: I90fce68639c46f0592f66448a475c7822373d5b7
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 57caa26a
......@@ -912,6 +912,8 @@ def bbedit(args):
#warn("EDIT: %s %s %s %s: " % (pos, type, expr, value))
if qqEditable.has_key(type):
qqEditable[type](expr, value)
else:
gdb.execute("set (%s)=%s" % (expr, value))
registerCommand("bbedit", bbedit)
......@@ -1407,6 +1409,8 @@ class Dumper:
if type.code == TypedefCode:
type = type.strip_typedefs()
# The cast can destroy the address?
self.putAddress(value.address)
# Workaround for http://sourceware.org/bugzilla/show_bug.cgi?id=13380
if type.code == ArrayCode:
value = parseAndEvaluate("{%s}%s" % (type, value.address))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment