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 python/11482] New: Side effect of set print address on python API


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.


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