This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/11704] New: Cannot load debugging info
- From: "dimabarts at yahoo dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 14 Jun 2010 18:29:08 -0000
- Subject: [Bug gdb/11704] New: Cannot load debugging info
- Reply-to: sourceware-bugzilla at sourceware dot org
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.