[Bug python/12173] New: gdb.execute(..., to_string=True) does not capture all output

markflorisson88 at gmail dot com sourceware-bugzilla@sourceware.org
Sun Oct 31 20:39:00 GMT 2010


           Summary: gdb.execute(..., to_string=True) does not capture all
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: markflorisson88@gmail.com

gdb.execute() with the to_string argument set to True does not capture all
output, specifically output from 'running'-related commands. To demonstrate:

GNU gdb (GDB) 7.2 
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. 
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
(gdb) file ./a.out
(gdb) python gdb.execute('break main', to_string=True)       
(gdb) python gdb.execute('run', to_string=True)           

Breakpoint 1, main () at test.c:2
2           return 0;

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.

More information about the Gdb-prs mailing list