This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/54887] gdb test case failure with mi-var-rtti
- From: "arnez at linux dot vnet.ibm.com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 24 Oct 2012 17:51:44 +0000
- Subject: [Bug debug/54887] gdb test case failure with mi-var-rtti
- Auto-submitted: auto-generated
- References: <bug-54887-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54887
--- Comment #5 from Andreas Arnez <arnez at linux dot vnet.ibm.com> 2012-10-24 17:51:44 UTC ---
(In reply to comment #4)
> <2><32e>: Abbrev Number: 27 (DW_TAG_lexical_block)
> <32f> DW_AT_low_pc : 0x400758
> <337> DW_AT_high_pc : 0x38 0x0
> <3><33f>: Abbrev Number: 28 (DW_TAG_variable)
> <340> DW_AT_name : d
Such a whole-subprogram lexical block is still generated by mainline gcc at
r192761. I verified this on x86_64 with use_rtti_for_ptr_test() in
mi-var-rtti.cc.
Note that the lexical block's range is slightly smaller than the subprogram's:
<1><30d>: Abbrev Number: 26 (DW_TAG_subprogram)
<30e> DW_AT_external : 1
<30e> DW_AT_name : (indirect string, offset: 0x35f):
use_rtti_for_ptr_test
<312> DW_AT_decl_file : 1
<313> DW_AT_decl_line : 30
<314> DW_AT_linkage_name: (indirect string, offset: 0x173):
_Z21use_rtti_for_ptr_testv
<318> DW_AT_low_pc : 0x400750
<320> DW_AT_high_pc : 0x42 0x0
<328> DW_AT_frame_base : 1 byte block: 9c (DW_OP_call_frame_cfa)
<32a> Unknown AT value: 2116: 1
<32a> DW_AT_sibling : <0x386>
<2><32e>: Abbrev Number: 27 (DW_TAG_lexical_block)
<32f> DW_AT_low_pc : 0x400758
<337> DW_AT_high_pc : 0x38 0x0
Is this expected or not? If needed, I can open a separate Bugzilla for this.