This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/11381] pretty print display hint struct format problems
- From: "pmuldoon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 1 Apr 2010 16:28:31 -0000
- Subject: [Bug python/11381] pretty print display hint struct format problems
- References: <20100316050845.11381.chrisj@rtems.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pmuldoon at redhat dot com 2010-04-01 16:28 -------
I'm attaching a draft patch that will allow the user to return None in to_string
and the output should be formatted correctly. This is an example of a vector
that returns None for to_string, and a deque that returns some text:
(gdb) p v
$1 = {0x409922 "one"}
(gdb) p ddd
$2 = std::deque with 3 elements {18, 23, 7}
If this is what you want, I'll update/clean-up/add testcases to the patch and
submit it to FSF GDB.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11381
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.