public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/29561] New: [gdb/symtab] During symbol reading: file index out of range
@ 2022-09-08 12:13 vries at gcc dot gnu.org
  2022-09-08 12:17 ` [Bug symtab/29561] " vries at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2022-09-08 12:13 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 29561
           Summary: [gdb/symtab] During symbol reading: file index out of
                    range
           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: ---

Fairly simple test-case:
...
$ gcc -g ~/hello.c
...

With gdb build from trunk:
...
$ gdb -q -batch -iex "set complaints 100" ./a.out  -ex "maint expand-symtabs"
During symbol reading: file index out of range
$
...

With system gdb (11.1):
...
$ gdb -q -batch -iex "set complaints 100" ./a.out  -ex "maint expand-symtabs" 
$
...

DIE that is complained about is:
...
 <1><4b>: Abbrev Number: 2 (DW_TAG_variable)
    <4c>   DW_AT_name        : _IO_stdin_used
    <50>   DW_AT_decl_file   : 1
    <51>   DW_AT_decl_line   : 23
    <52>   DW_AT_type        : <0x67>
    <56>   DW_AT_external    : 1
    <56>   DW_AT_location    : 9 byte block: 3 70 5 40 0 0 0 0 0       
(DW_OP_addr: 400570)
...

Referring to file/dir info:
...
 The Directory Table is empty.

 The File Name Table (offset 0x78):
  Entry Dir     Time    Size    Name
  1     0       0       0       init.c
...

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

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

end of thread, other threads:[~2022-09-17  6:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-08 12:13 [Bug symtab/29561] New: [gdb/symtab] During symbol reading: file index out of range vries at gcc dot gnu.org
2022-09-08 12:17 ` [Bug symtab/29561] " vries at gcc dot gnu.org
2022-09-08 14:51 ` vries at gcc dot gnu.org
2022-09-08 15:24 ` vries at gcc dot gnu.org
2022-09-08 15:37 ` vries at gcc dot gnu.org
2022-09-08 17:33 ` vries at gcc dot gnu.org
2022-09-09  6:52 ` vries at gcc dot gnu.org
2022-09-17  6:28 ` 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).