This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/10584] MI vars with Python pretty-printers don't get updated


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]