This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/11482] New: Side effect of set print address on python API
- From: "michel dot metzger at st dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 9 Apr 2010 17:29:33 -0000
- Subject: [Bug python/11482] New: Side effect of set print address on python API
- Reply-to: sourceware-bugzilla at sourceware dot org
The GDB command set print address seems to have a side effect on the
Frame.read_var() Python method (and maybe others).
Here is a simple example:
(gdb) set print address on
(gdb) python print len(str(gdb.selected_frame().read_var("argv")))
10
(gdb) set print address off
(gdb) python print len(str(gdb.selected_frame().read_var("argv")))
0
i.e. the read_var() method does not return a valid Value when print address is off.
--
Summary: Side effect of set print address on python API
Product: gdb
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned at sourceware dot org
ReportedBy: michel dot metzger at st dot com
CC: gdb-prs at sourceware dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686 athlon i386 GNU/Linux
http://sourceware.org/bugzilla/show_bug.cgi?id=11482
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.