public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug symtab/28221] [readnow, stabs] FAIL: gdb.dwarf2/dw2-ranges.exp: info line func
Date: Wed, 11 Aug 2021 13:02:34 +0000	[thread overview]
Message-ID: <bug-28221-4717-vmJlsJTvmc@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28221-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=28221

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Hack that makes the test pass:
...
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index cf35880b509..7fd570cf515 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -1896,10 +1896,13 @@ read_dbx_symtab (minimal_symbol_reader &reader,
         : lowest_text_address)
        + text_size;

+      if (pst->raw_text_high() == pst->raw_text_low ())
+       pst->set_text_high (pst->raw_text_low () + 1);
+
       dbx_end_psymtab (objfile, partial_symtabs,
                       pst, psymtab_include_list, includes_used,
                       symnum * symbol_size,
-                      (text_end > pst->raw_text_high ()
+                      (text_end < pst->raw_text_high ()
                        ? text_end : pst->raw_text_high ()),
                       dependency_list, dependencies_used, textlow_not_set);
     }
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  reply	other threads:[~2021-08-11 13:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-11 13:02 [Bug symtab/28221] New: " vries at gcc dot gnu.org
2021-08-11 13:02 ` vries at gcc dot gnu.org [this message]
2021-08-11 14:22 ` [Bug symtab/28221] " vries at gcc dot gnu.org
2021-08-14  6:25 ` vries at gcc dot gnu.org
2021-08-14  6:28 ` vries at gcc dot gnu.org
2021-08-14 12:15 ` vries at gcc dot gnu.org
2021-08-14 13:24 ` vries at gcc dot gnu.org
2021-08-14 14:26 ` vries at gcc dot gnu.org
2021-08-14 14:29 ` vries at gcc dot gnu.org
2021-08-16  7:24 ` vries at gcc dot gnu.org
2021-08-23 10:08 ` cvs-commit at gcc dot gnu.org
2021-08-24  6:39 ` [Bug symtab/28221] [readnow, gas-stabs] " 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-28221-4717-vmJlsJTvmc@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).