public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/11704] New: Cannot load debugging info
@ 2010-06-14 18:29 dimabarts at yahoo dot com
  2010-06-14 20:58 ` [Bug gdb/11704] " tromey at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dimabarts at yahoo dot com @ 2010-06-14 18:29 UTC (permalink / raw)
  To: gdb-prs

gdb doesn't load debugging info. Here is my session:
% cc -g -c hello.c
% cc hello.o -o hello
% ~/gdb-7.1/gdb/gdb hello
GNU gdb (GDB) 7.1
Copyright (C) 2010 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 "sparc-sun-solaris2.10".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /export/home/dbarts/C/hello...(no debugging symbols
found)...done.

Trying symbol-file hello.o doesn't work either

However when I compile and link in the same move, everything suddenly works:
% cc -g hello.c -o hello
% ~/gdb-7.1/gdb/gdb hello
GNU gdb (GDB) 7.1
Copyright (C) 2010 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 "sparc-sun-solaris2.10".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /export/home/dbarts/C/hello...done.

The same happens with version 6.8. Both were built with the Sun compiler Sun C 5.5.

-- 
           Summary: Cannot load debugging info
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: dimabarts at yahoo dot com
                CC: gdb-prs at sourceware dot org


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

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


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

end of thread, other threads:[~2010-06-17 17:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-14 18:29 [Bug gdb/11704] New: Cannot load debugging info dimabarts at yahoo dot com
2010-06-14 20:58 ` [Bug gdb/11704] " tromey at redhat dot com
2010-06-14 21:22 ` dimabarts at yahoo dot com
2010-06-15 21:46 ` tromey at redhat dot com
2010-06-16  0:35 ` dimabarts at yahoo dot com
2010-06-16 17:38 ` dimabarts at yahoo dot com
2010-06-17 17:03 ` tromey at redhat 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).