sourceware-bugzilla at zulan dot net
2017-05-20 14:54:59 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=21506
Bug ID: 21506
Summary: python execute(to_string=True) no longer captures
certain output since e7ea3ec7
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: sourceware-bugzilla at zulan dot net
Target Milestone: ---
python gdb.execute(to_string=True) no longer captures all output, in particular
for the 'step' command, since f7c382926d. This is limits functionality, e.g.
http://stackoverflow.com/questions/39602306/tracing-program-function-execution-on-source-line-level
Expected result (f7c382926d)
$ ./gdb/gdb ../a.out
GNU gdb (GDB) 7.11.50.20160331-git
Reading symbols from ../a.out...done.
(gdb) break main
Breakpoint 1 at 0x4004aa: file test.c, line 3.
(gdb) run
Starting program: /home/tilsche/code/gdb/a.out
Breakpoint 1, main () at test.c:3
3 return 4;
(gdb) python x = gdb.execute('step', to_string=True)
(gdb) python print(x)
4 }
Result since e7ea3ec7c6
$ ./gdb/gdb ../a.out
GNU gdb (GDB) 7.11.50.20160331-git
Reading symbols from ../a.out...done.
(gdb) break main
Breakpoint 1 at 0x4004aa: file test.c, line 3.
(gdb) run
Starting program: /home/tilsche/code/gdb/a.out
Breakpoint 1, main () at test.c:3
3 return 4;
(gdb) python x = gdb.execute('step', to_string=True)
4 }
(gdb) python print(x)
Test code:
int main()
{
return 4;
}
Bug ID: 21506
Summary: python execute(to_string=True) no longer captures
certain output since e7ea3ec7
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: sourceware-bugzilla at zulan dot net
Target Milestone: ---
python gdb.execute(to_string=True) no longer captures all output, in particular
for the 'step' command, since f7c382926d. This is limits functionality, e.g.
http://stackoverflow.com/questions/39602306/tracing-program-function-execution-on-source-line-level
Expected result (f7c382926d)
$ ./gdb/gdb ../a.out
GNU gdb (GDB) 7.11.50.20160331-git
Reading symbols from ../a.out...done.
(gdb) break main
Breakpoint 1 at 0x4004aa: file test.c, line 3.
(gdb) run
Starting program: /home/tilsche/code/gdb/a.out
Breakpoint 1, main () at test.c:3
3 return 4;
(gdb) python x = gdb.execute('step', to_string=True)
(gdb) python print(x)
4 }
Result since e7ea3ec7c6
$ ./gdb/gdb ../a.out
GNU gdb (GDB) 7.11.50.20160331-git
Reading symbols from ../a.out...done.
(gdb) break main
Breakpoint 1 at 0x4004aa: file test.c, line 3.
(gdb) run
Starting program: /home/tilsche/code/gdb/a.out
Breakpoint 1, main () at test.c:3
3 return 4;
(gdb) python x = gdb.execute('step', to_string=True)
4 }
(gdb) python print(x)
Test code:
int main()
{
return 4;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
You are receiving this mail because:
You are on the CC list for the bug.