[Bug debug/52160] gdb ignores line "bar: if(foo)goto bar;"
jan.kratochvil at redhat dot com
gcc-bugzilla@gcc.gnu.org
Sun Sep 16 07:09:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52160
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan.kratochvil at redhat
| |dot com
--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-09-16 07:09:26 UTC ---
The same problem with IMO more minimal reproducer:
------------------------------------------------------------------------------
int i;
void f (void)
{
redo:
if (i)
goto redo;
}
int main (void)
{
f ();
return 0;
}
------------------------------------------------------------------------------
(gdb) break f
Breakpoint 1 at 0x4004c2: file 123.c, line 6.
(gdb) run
Starting program: /home/jkratoch/t/123
[Inferior 1 (process 308) exited normally]
------------------------------------------------------------------------------
f:
.LFB0:
.file 1 "123.c"
.loc 1 3 0
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
jmp .L2
.L4:
.loc 1 6 0
<-- GDB places breakpoint here
nop
.L2:
.loc 1 5 0
More information about the Gcc-bugs
mailing list