[Bug debug/65821] [4.8.2 regression] incorrect debug line # info for main

chihin.ko at oracle dot com gcc-bugzilla@gcc.gnu.org
Tue Apr 21 03:24:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65821

--- Comment #2 from chihin ko <chihin.ko at oracle dot com> ---
(In reply to Andrew Pinski from comment #1)
> It is doing (b+3) first which is from :5 which seems correct to me.  Default
> arguments should have a line information right?

Then gdb should stop at line 30 first and when I step into foo(),
it stop at line 5. line 5 should belongs to foo().

Current behavior is confusing to user.



More information about the Gcc-bugs mailing list