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 breakpoints/13568] GDB can trigger a SIGBUS putting abreakpoint on a source line removed by linker garbage collection


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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |tromey at redhat dot com

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2012-01-25 17:44:35 UTC ---
I couldn't reproduce with gcc 4.5 and CVS head gdb; see appended transcript.

If it still fails for you, could you attach an executable?
That might help.


barimba. gcc --version
gcc (GCC) 4.5.1 20100430 (prerelease) [gcc-4_5-branch revision 158946]
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

barimba. gcc -g3 -ffunction-sections -Wl,--gc-sections a.c -o prbarimba. 
~/gnu/baseline-gdb/build/gdb/gdb -nw ./pr
GNU gdb (GDB) 7.4.50.20120125-cvs
Copyright (C) 2012 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:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/tromey/gnu/PRS/gdb13568/pr...done.
(gdb) b a.c:6
No line 6 in file "a.c".
Make breakpoint pending on future shared library load? (y or [n]) n

-- 
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]