This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug win32/14527] warning: section .gnu_debuglink not found inMODULENAME.debug
- From: "muhammad_bilal at mentor dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 19 Dec 2012 08:06:33 +0000
- Subject: [Bug win32/14527] warning: section .gnu_debuglink not found inMODULENAME.debug
- Auto-submitted: auto-generated
- References: <bug-14527-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14527
muhammad_bilal at mentor dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |muhammad_bilal at mentor
| |dot com
--- Comment #1 from muhammad_bilal at mentor dot com 2012-12-19 08:06:33 UTC ---
Hi LRN
I have used this command
gcc -g hello.c -o hello
objcopy --only-keep-debug ./hello ./hello.gdb
objcopy --strip-debug ./hello
objcopy --add-gnu-debuglink="hello.gdb" ./hello
gdb -ex r -ex q --return-child-result ./hello
then gdb show correcrt output:
GNU gdb (GDB) 7.5.50.20121127
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 "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/mbilal/Desktop/hello...Reading symbols from
/home/mbilal/Desktop/hello.gdb...done.
done.
Starting program: /home/mbilal/Desktop/hello
hello world
[Inferior 1 (process 8948) exited normally]
for a file of
hello.c
#include<stdio.h>
int main()
{
printf("hello world\n");
return 0;
}
it worked fine
regards
Bilal
--
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.