public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* python and gdbmi
@ 2011-06-13 18:51 jacques klein
  2011-06-13 19:26 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: jacques klein @ 2011-06-13 18:51 UTC (permalink / raw)
  To: gdb

Using gdb-7.3.50 (20110607).
Maybe a bug, it seems that the python expr
    gdb.execute('interpreter-exec mi -file-list-exec-source-files', 
to_string=True)
returns an empty string and the command result goes to stdout
( to_string has some effect, but not the expected one) or did I miss 
something ?
But maybe there is a python gdb command or class to get the same info ?.

Any help is welcome.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: python and gdbmi
  2011-06-13 18:51 python and gdbmi jacques klein
@ 2011-06-13 19:26 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2011-06-13 19:26 UTC (permalink / raw)
  To: jacques klein; +Cc: gdb

>>>>> "Jacques" == jacques klein <jacques.klein@dalim.com> writes:

Jacques> Using gdb-7.3.50 (20110607).
Jacques> Maybe a bug, it seems that the python expr
Jacques>    gdb.execute('interpreter-exec mi -file-list-exec-source-files',
Jacques> to_string=True)
Jacques> returns an empty string and the command result goes to stdout
Jacques> ( to_string has some effect, but not the expected one) or did I miss
Jacques> something ?

I think it is a bug.
Please file it in bugzilla.

Jacques> But maybe there is a python gdb command or class to get the same info ?

Not yet.

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-13 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-13 18:51 python and gdbmi jacques klein
2011-06-13 19:26 ` Tom Tromey

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).