This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/10584] 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 09:12:50 -0000
- Subject: [Bug gdb/10584] MI vars with Python pretty-printers don't get updated
- References: <20090901081610.10584.noamraph@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From noamraph at gmail dot com 2009-09-01 09:12 -------
Ok, here's a workaround/half-fix:
Apply the patch. It simply comments out two lines which avoid updating a value
which has a pretty printer and for which -var-list-children was not called.
Python pretty-printers get updated without calling -var-list-children - the
attached bug.py is an example.
Now, use bug-workaround.py instead of bug.py. It seems that gdb doesn't update
the value before getting its string. bug-workaround.py references and
dereferences the value, with the effect of re-evaluating it.
--
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.