public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56783] New: g++ does not supply signatures for gdb on g++ 4.7 versions
@ 2013-03-29 17:12 dick.guertin at gmail dot com
  2013-03-29 17:21 ` [Bug debug/56783] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dick.guertin at gmail dot com @ 2013-03-29 17:12 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56783

             Bug #: 56783
           Summary: g++ does not supply signatures for gdb on g++ 4.7
                    versions
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dick.guertin@gmail.com


Steps to reproduce:

On Snow Leopard, compile c-programs with -g option using g++ to create a linked
module for execution.  Use gdb to read the module, and attempt to set
breakpoints.  No symbols are found.  g++ no longer places the "signatures" in
the linked module, or the object decks, so gdb can't find the signatures to
satisfy something like:  break emsvc.c:DoSVC ;  However, the same source
compiled with g++ and linked on Tiger, when copied to Snow Leopard, can set
breakpoints.


Actual results:

dickguertin$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/bin/../libexec/gcc/x86_64-apple-darwin11.4.0/4.7.1/lto-wrapper
Target: x86_64-apple-darwin11.4.0
Configured with: ../gcc-4.7.1/configure --enable-languages=fortran
Thread model: posix
gcc version 4.7.1 (GCC) 

dickguertin$ gdb -q emg 2>/dev/null
Reading symbols for shared libraries ..... done
(gdb) maint print psymbols emg.sym
(gdb) break emsvc.c:DoSVC
Function "DoSVC" not defined in file emsvc.c.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) quit
dickguertin$ 


Expected results:

In the command sequence shown above, the breakpoint should have been set.  The
"maint" command creates a symbol-table text-file (emg.sym), which shows that
the signatures are no longer included in either the object decks or linked
module (emg).  Similar commands on Tiger produce symbol-tables with signatures,
and breakpoints can be found (and set) by gdb on Tiger, and even the gdb on
Snow Leopard.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-03-30 14:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-29 17:12 [Bug c++/56783] New: g++ does not supply signatures for gdb on g++ 4.7 versions dick.guertin at gmail dot com
2013-03-29 17:21 ` [Bug debug/56783] " pinskia at gcc dot gnu.org
2013-03-29 17:57 ` dick.guertin at gmail dot com
2013-03-29 19:27 ` redi at gcc dot gnu.org
2013-03-29 20:04 ` dick.guertin at gmail dot com
2013-03-29 20:56 ` redi at gcc dot gnu.org
2013-03-29 21:20 ` dick.guertin at gmail dot com
2013-03-29 21:23 ` dick.guertin at gmail dot com
2013-03-30 12:10 ` redi at gcc dot gnu.org
2013-03-30 14:52 ` dick.guertin at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).