This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/12929] New: Incorrect behavior with async mode
- From: "kevin.pouget at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 24 Jun 2011 12:50:04 +0000
- Subject: [Bug python/12929] New: Incorrect behavior with async mode
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12929
Summary: Incorrect behavior with async mode
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned@sourceware.org
ReportedBy: kevin.pouget@gmail.com
In asynchronous mode, commands executed from Python don't behave correctly:
(gdb) set target-async on
(gdb) py gdb.execute("attach PID") ; gdb.execute("where")
#0 0x0000003cbd0aa47e in ?? ()
#1 0x0000000000000000 in ?? ()
0x0000003cbd0aa47e in waitpid () from /lib64/libc.so.6
where as the behavior should be the same as synchronous mode:
(gdb) set target-async off
(gdb) py gdb.execute("attach PID") ; gdb.execute("where")
0x0000003cbd0aa47e in waitpid () from /lib64/libc.so.6
#0 0x0000003cbd0aa47e in waitpid () from /lib64/libc.so.6
#1 0x000000000043ede2 in ?? ()
#2 0x000000000044005f in wait_for ()
#3 0x0000000000430c45 in execute_command_internal ()
#4 0x0000000000430e0e in execute_command ()
#5 0x000000000041d526 in reader_loop ()
#6 0x000000000041ccde in main ()
--
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.