public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/11482] New: Side effect of set print address on python API
@ 2010-04-09 17:29 michel dot metzger at st dot com
  2010-04-14 17:05 ` [Bug python/11482] " pmuldoon at redhat dot com
                   ` (28 more replies)
  0 siblings, 29 replies; 32+ messages in thread
From: michel dot metzger at st dot com @ 2010-04-09 17:29 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 32+ messages in thread
[parent not found: <bug-11482-4717@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2024-06-22  0:24 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-09 17:29 [Bug python/11482] New: Side effect of set print address on python API michel dot metzger at st dot com
2010-04-14 17:05 ` [Bug python/11482] " pmuldoon at redhat dot com
2010-04-14 17:47 ` michel dot metzger at st dot com
2010-04-14 20:05 ` pmuldoon at redhat dot com
2010-04-14 20:21 ` pmuldoon at redhat dot com
2010-04-14 21:07 ` michel dot metzger at st dot com
2010-04-14 21:29 ` pmuldoon at redhat dot com
2010-04-14 23:18 ` tromey at redhat dot com
2010-04-14 23:31 ` pedro at codesourcery dot com
2010-04-14 23:32 ` pedro at codesourcery dot com
2010-04-15 14:35 ` michel dot metzger at st dot com
2010-04-15 14:40 ` pedro at codesourcery dot com
2010-04-15 16:23 ` pmuldoon at redhat dot com
2010-04-15 16:28 ` pmuldoon at redhat dot com
2010-04-17  6:36 ` pmuldoon at redhat dot com
2010-04-19 22:00 ` tromey at redhat dot com
2010-04-21 15:26 ` michel dot metzger at st dot com
2010-04-21 15:27 ` michel dot metzger at st dot com
2010-05-06 13:16 ` pmuldoon at redhat dot com
2010-05-06 13:28 ` pmuldoon at redhat dot com
2010-05-06 13:29 ` pmuldoon at redhat dot com
2010-05-12 20:21 ` tromey at redhat dot com
2010-05-17  9:21 ` pmuldoon at redhat dot com
2010-05-17  9:22 ` pmuldoon at redhat dot com
2010-05-17  9:22 ` pmuldoon at redhat dot com
2010-05-19 14:57 ` michel dot metzger at st dot com
2010-05-19 14:59 ` michel dot metzger at st dot com
2010-05-19 23:01 ` tromey at redhat dot com
2010-05-20 14:37 ` michel dot metzger at st dot com
2010-06-30 17:37 ` tromey at redhat dot com
     [not found] <bug-11482-4717@http.sourceware.org/bugzilla/>
2021-01-15 16:09 ` ssbssa at sourceware dot org
2024-06-22  0:24 ` ssbssa at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).