This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/10584] New: MI vars with Python pretty-printers don't get updated
- From: "noamraph at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 1 Sep 2009 08:16:11 -0000
- Subject: [Bug gdb/10584] New: MI vars with Python pretty-printers don't get updated
- Reply-to: sourceware-bugzilla at sourceware dot org
Hello,
If I create a Python pretty-printer, it doesn't get updated in GUI using gdb.
This is because the MI var doesn't get updated. To recreate:
Download bug.c, bug.py which I will attach in a minute.
> gcc -g bug.c
> gdb --int mi2
(gdb) python execfile("bug.py") # Install pretty-printer for type "MyInt"
(gdb) break main
(gdb) run
(gdb) next # do x = 3
(gdb) -var-create x * x
(gdb) next # x = 5
(gdb) -var-update * # Doesn't report x changing.
This was tested on a current CVS: 6.8.50.20090831
Thanks,
Noam
--
Summary: MI vars with Python pretty-printers don't get updated
Product: gdb
Version: 6.8
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned at sourceware dot org
ReportedBy: noamraph at gmail dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=10584
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.