public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "simark at simark dot ca" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug symtab/28200] DW_AT_ranges handling in partial_die_info::read does not handle discontinuous ranges
Date: Fri, 06 Aug 2021 13:18:51 +0000 [thread overview]
Message-ID: <bug-28200-4717-W3MzTGrrkp@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28200-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=28200
--- Comment #3 from Simon Marchi <simark at simark dot ca> ---
(In reply to Tom de Vries from comment #0)
> What happens here, is that gdb puts together the address map from the
> functions, triggered by this code in process_psymtab_comp_unit_reader being
> called with cu_bounds_kind == PC_BOUNDS_INVALID, which sets the set_addrmap
> argument to 1:
> ...
> scan_partial_symbols (first_die, &lowpc, &highpc,
> cu_bounds_kind <= PC_BOUNDS_INVALID, cu);
> ...
I'm trying to reproduce to understand better what you mean and I lose you here.
I'm at:
(top-gdb) frame
#0 process_psymtab_comp_unit_reader (reader=0x7fffffffc3e0,
info_ptr=0x60c000014faa "\003\004\005integer", comp_unit_die=0x621000163110,
pretend_language=language_minimal) at
/home/simark/src/binutils-gdb/gdb/dwarf2/read.c:6941
6941 if (cu_bounds_kind == PC_BOUNDS_HIGH_LOW && best_lowpc < best_highpc)
And cu_bounds_kind is:
(top-gdb) p cu_bounds_kind
$9 = PC_BOUNDS_RANGES
Not PC_BOUNDS_INVALID.
This is with the test case modified as you explained, with the separate but
contiguous ranges:
0x0000000b: DW_TAG_compile_unit
DW_AT_language [DW_FORM_sdata] (2)
DW_AT_name [DW_FORM_string] ("dw-ranges-psym.c")
DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000)
DW_AT_ranges [DW_FORM_sec_offset] (0x00000040
[0x000000000000113e, 0x0000000000001159)
[0x000000000000112b, 0x000000000000112c)
[0x000000000000112c, 0x0000000000001137)
[0x0000000000001137, 0x000000000000113e)
[0x0000000000001124, 0x000000000000112b))
--
You are receiving this mail because:
You are on the CC list for the bug.
next prev parent reply other threads:[~2021-08-06 13:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-06 11:03 [Bug symtab/28200] New: " vries at gcc dot gnu.org
2021-08-06 11:04 ` [Bug symtab/28200] " vries at gcc dot gnu.org
2021-08-06 11:18 ` vries at gcc dot gnu.org
2021-08-06 11:57 ` vries at gcc dot gnu.org
2021-08-06 13:18 ` simark at simark dot ca [this message]
2021-08-06 14:23 ` vries at gcc dot gnu.org
2021-08-06 14:28 ` vries at gcc dot gnu.org
2021-08-06 15:44 ` simark at simark dot ca
2021-08-06 15:57 ` vries at gcc dot gnu.org
2021-08-06 16:46 ` simark at simark dot ca
2021-08-10 13:38 ` vries at gcc dot gnu.org
2021-08-10 15:06 ` vries at gcc dot gnu.org
2021-08-10 15:06 ` vries at gcc dot gnu.org
2021-08-24 14:29 ` brobecker at gnat dot com
2021-08-24 14:58 ` vries at gcc dot gnu.org
2021-09-14 12:41 ` cvs-commit at gcc dot gnu.org
2021-09-14 12:56 ` vries at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-28200-4717-W3MzTGrrkp@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=gdb-prs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).