tromey at sourceware dot org
2018-06-21 18:59:15 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=23327
Bug ID: 23327
Summary: cannot stop in captured_main when built with gcc 8.1.1
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
I'm using x86-64 Fedora 28.
I built gdb with the system gcc using the default options, -g -O2.
Then I try to debug gdb itself and stop in captured_main.
However, the breakpoint is never hit. This shows up as a failure
in one of the gdb.gdb self-tests.
The function is inlined but is described in the DWARF:
<1><4219f9d>: Abbrev Number: 161 (DW_TAG_subprogram)
<4219f9f> DW_AT_name : (indirect string, offset:
0x4d7b65): captured_main
<4219fa3> DW_AT_decl_file : 1
<4219fa4> DW_AT_decl_line : 1143
<4219fa6> DW_AT_decl_column : 1
<4219fa7> DW_AT_inline : 1 (inlined)
<4219fa8> DW_AT_sibling : <0x4219fea>
Setting the breakpoint claims to work:
(top-gdb) b captured_main
Breakpoint 3 at 0x42400b: file ../../binutils-gdb/gdb/main.c, line 359.
However "info b" shows something else:
3 breakpoint keep y 0x000000000042400b in
gdb_main(captured_main_args*) at ../../binutils-gdb/gdb/main.c:359
"info func" doesn't know about the inline function:
(top-gdb) info func captured_main
All functions matching regular expression "captured_main":
File ../../binutils-gdb/gdb/main.c:
int gdb_main(captured_main_args*);
Bug ID: 23327
Summary: cannot stop in captured_main when built with gcc 8.1.1
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
I'm using x86-64 Fedora 28.
I built gdb with the system gcc using the default options, -g -O2.
Then I try to debug gdb itself and stop in captured_main.
However, the breakpoint is never hit. This shows up as a failure
in one of the gdb.gdb self-tests.
The function is inlined but is described in the DWARF:
<1><4219f9d>: Abbrev Number: 161 (DW_TAG_subprogram)
<4219f9f> DW_AT_name : (indirect string, offset:
0x4d7b65): captured_main
<4219fa3> DW_AT_decl_file : 1
<4219fa4> DW_AT_decl_line : 1143
<4219fa6> DW_AT_decl_column : 1
<4219fa7> DW_AT_inline : 1 (inlined)
<4219fa8> DW_AT_sibling : <0x4219fea>
Setting the breakpoint claims to work:
(top-gdb) b captured_main
Breakpoint 3 at 0x42400b: file ../../binutils-gdb/gdb/main.c, line 359.
However "info b" shows something else:
3 breakpoint keep y 0x000000000042400b in
gdb_main(captured_main_args*) at ../../binutils-gdb/gdb/main.c:359
"info func" doesn't know about the inline function:
(top-gdb) info func captured_main
All functions matching regular expression "captured_main":
File ../../binutils-gdb/gdb/main.c:
int gdb_main(captured_main_args*);
--
You are receiving this mail because:
You are on the CC list for the bug.
You are receiving this mail because:
You are on the CC list for the bug.