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/10236] New: asyncronous execution becomes unusable if you single step to the end of an executable


The following terminal dump explains the problem very well:
$ echo 'main(int,char**){retur^C   
$ echo 'int main(int,char**){return 0;}'>bug.cpp
$ gcc -g bug.cpp
$ gdb a.out  
GNU gdb (GDB) 6.8.50.20090106-cvs
Copyright (C) 2009 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 "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) set target-async 1
(gdb) b main
Breakpoint 1 at 0x80483a2: file bug.cpp, line 1.
(gdb) run &
Starting program: /home/richard/a.out 
(gdb) 
Breakpoint 1, main () at bug.cpp:1
1	int main(int,char**){return 0;}
n
0xb7e72775 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
(gdb) n
Single stepping until exit from function __libc_start_main, 
which has no line number information.

Program exited normally.
(gdb) run
Starting program: /home/richard/a.out 
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0xb7e874b0: Input/output error.

>From here, whatever I try, that error repeats whenever you try to 'run' or 'run
&' forcing a restart of the debugger. and losing of all breakpoints, etc.

-- 
           Summary: asyncronous execution becomes unusable if you single
                    step to the end of an executable
           Product: gdb
           Version: archer
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: richard dot j dot ward1 at gmail dot com
                CC: gdb-prs at sourceware dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10236

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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