public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/28221] New: [readnow, stabs] FAIL: gdb.dwarf2/dw2-ranges.exp: info line func
@ 2021-08-11 13:02 vries at gcc dot gnu.org
  2021-08-11 13:02 ` [Bug symtab/28221] " vries at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: vries at gcc dot gnu.org @ 2021-08-11 13:02 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 28221
           Summary: [readnow, stabs] FAIL: gdb.dwarf2/dw2-ranges.exp: info
                    line func
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

With target board readnow/-fno-PIE/-no-pie [on ubuntu 18.04, we use the -no-pie
to work around PR12497 ] we run into:
...
(gdb) PASS: gdb.dwarf2/dw2-ranges.exp: info line main
info line func^M
No line number information available for address 0x400528 <func>^M
(gdb) FAIL: gdb.dwarf2/dw2-ranges.exp: info line func
...

The problem is that the while the code from dw2-ranges3.c:
...
00000000004004a9 <main3>:
  4004a9:       55                      push   %rbp
  4004aa:       48 89 e5                mov    %rsp,%rbp
  4004ad:       90                      nop
  4004ae:       5d                      pop    %rbp
  4004af:       c3                      retq
...
is in the 4004a9-4004af range, the blockvector ends at 0x40053b:
...
$ gdb -q -batch outputs/gdb.dwarf2/dw2-ranges/dw2-ranges -ex start -ex "maint
expand-symtabs" -ex "maint print symbols"
  ...
Symtab for file
/home/vries/gdb/build/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges/dw2-ranges3.s
at 0x55b2b81908b0
Read from object file
/home/vries/gdb/build/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges/dw2-ranges
(0x55b2b81374b0)
Language: asm

Line table:

 line 8 at 0x4004a9     (stmt)
 line 11 at 0x4004aa    (stmt)
 line 13 at 0x4004ad    (stmt)
 line 14 at 0x4004ae    (stmt)
 line 16 at 0x4004af    (stmt)

Blockvector:

block #000, object at 0x55b2b8190830, 0 syms/buckets in 0x4004a9..0x40053b
  block #001, object at 0x55b2b81907d0 under 0x55b2b8190830, 0 syms/buckets in
0x4004a9..0x40053b
...

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-08-24  6:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 13:02 [Bug symtab/28221] New: [readnow, stabs] FAIL: gdb.dwarf2/dw2-ranges.exp: info line func vries at gcc dot gnu.org
2021-08-11 13:02 ` [Bug symtab/28221] " vries at gcc dot gnu.org
2021-08-11 14:22 ` 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

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).