fromGoogleCode / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

DebugInfo has wrong info when gdb debugging #177

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write a simple helloworld.c and gcc it to a.out (Use -v to dump detail 
commands)
3. Replace /usr/bin/ld to use ld.mcld to link
4. Now, use 'gdb ./a.out' and 'b main'

Expected:
Breakpoint 1, main() at test.c:3
Result:
Breakpoint 1, GNU C 4.8.2 -mtune=generic -march=x86-64 -g -O2 -fstack-protector 
() at test.c:3

What version of the product are you using? On what operating system?
x86_64 host, linux

I guess it is introduced by previously DebugInfo patchset.
Please check. Thanks!

Original issue reported on code.google.com by wenhan...@gmail.com on 31 Dec 2014 at 9:43

GoogleCodeExporter commented 9 years ago

Original comment by mysekki on 1 Jan 2015 at 3:42