* Side effect of set print address on python API
@ 2010-04-08 21:16 Michel METZGER
2010-04-09 17:03 ` Tom Tromey
0 siblings, 1 reply; 3+ messages in thread
From: Michel METZGER @ 2010-04-08 21:16 UTC (permalink / raw)
To: gdb
Hi all,
the Frame.read_var() method does not behave as (I) excpected when print
address is set to off
(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
It's not a blocking issue for me but I guess this is not the expected
behavior ;)
Regards,
--
Michel Metzger
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Side effect of set print address on python API 2010-04-08 21:16 Side effect of set print address on python API Michel METZGER @ 2010-04-09 17:03 ` Tom Tromey 2010-04-09 17:31 ` Michel METZGER 0 siblings, 1 reply; 3+ messages in thread From: Tom Tromey @ 2010-04-09 17:03 UTC (permalink / raw) To: Michel METZGER; +Cc: gdb >>>>> "Michel" == Michel METZGER <michel.metzger@st.com> writes: Michel> (gdb) set print address off Michel> (gdb) python print len(str(gdb.selected_frame().read_var("argv"))) Michel> 0 Michel> It's not a blocking issue for me but I guess this is not the expected Michel> behavior ;) It does seem odd. Could you file a bug report for this? Tom ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Side effect of set print address on python API 2010-04-09 17:03 ` Tom Tromey @ 2010-04-09 17:31 ` Michel METZGER 0 siblings, 0 replies; 3+ messages in thread From: Michel METZGER @ 2010-04-09 17:31 UTC (permalink / raw) To: tromey; +Cc: gdb Tom Tromey wrote: >>>>>> "Michel" == Michel METZGER <michel.metzger@st.com> writes: > > Michel> (gdb) set print address off > Michel> (gdb) python print len(str(gdb.selected_frame().read_var("argv"))) > Michel> 0 > > Michel> It's not a blocking issue for me but I guess this is not the expected > Michel> behavior ;) > > It does seem odd. Could you file a bug report for this? > > Tom > Here it is: http://sourceware.org/bugzilla/show_bug.cgi?id=11482 Michel. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-09 17:31 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-04-08 21:16 Side effect of set print address on python API Michel METZGER 2010-04-09 17:03 ` Tom Tromey 2010-04-09 17:31 ` Michel METZGER
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox