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 gdb/12886] New: python's gdb.execute('interpreter-exec mian-mi-command', to_string=True) returns empty string


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.


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