Gdb cannot debug Gcc compiled program
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdb (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: gdb
BFD chokes on the .gnu.hash sections. This is a duplicate of #73724, but even though the original is flagged as fixed it is still broken on x86_64.
-------
dalle@dalburk:~$ cat hello.c
#include <stdio.h>
main()
{
printf(
return 0;
}
dalle@dalburk:~$ gcc -g hello.c
dalle@dalburk:~$ file a.out
a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), not stripped
dalle@dalburk:~$ gdb a.out
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-
"/home/
(gdb) dalle@dalburk:~$ gcc --version
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Copyright (C) 2006 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.
dalle@dalburk:~$ uname -a
Linux dalburk 2.6.20-16-generic #2 SMP Wed May 23 00:30:47 UTC 2007 x86_64 GNU/Linux
Hi there
Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with the development branch of Ubuntu, Hardy Heron?
Thanks in advance.