This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/12886] New: python's gdb.execute('interpreter-exec mian-mi-command', to_string=True) returns empty string
- From: "jacques.klein at dalim dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 14 Jun 2011 09:10:00 +0000
- Subject: [Bug gdb/12886] New: python's gdb.execute('interpreter-exec mian-mi-command', to_string=True) returns empty string
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12886
Summary: python's gdb.execute('interpreter-exec mi
an-mi-command', to_string=True) returns empty string
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: jacques.klein@dalim.com
When to_string is set to True, mi command results are sent to stdout instead of
beeing returned by gdb.execute()
For example:
(gdb) python
>def mibug(toString):
> r = gdb.execute('interpreter-exec mi -environment-pwd', to_string=toString)
> print "r=>" + r + "<"
>end
(gdb) python mibug(True)
^done,cwd="/var/tmp"
(gdb)
r=><
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.