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 python/12929] New: Incorrect behavior with async mode


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.


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