public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/30661] New: [gdb/symtab] main symbol language lookup causes symtab expansion
@ 2023-07-21  7:34 vries at gcc dot gnu.org
  2023-07-21  8:16 ` [Bug symtab/30661] " vries at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2023-07-21  7:34 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30661
           Summary: [gdb/symtab] main symbol language lookup causes symtab
                    expansion
           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: ---

Consider a hello world:
...
$ gcc -g hello.c 
...

With gdb-12-branch:
...
$ gdb -q -batch a.out -ex "maint info symtabs"
$
...

With gdb-13-branch:
...
$ gdb -q -batch a.out -ex "maint info symtabs"
{ objfile /data/vries/gdb/a.out ((struct objfile *) 0x146ca90)
  { ((struct compunit_symtab *) 0x1460fc0)
    debugformat DWARF 4
    producer GNU C11 7.5.0 -mtune=generic -march=x86-64 -g
    name hello.c
  ...
...

This is a feature that was added to work around the slowness in expansion of
lto debug info, in order to not have to wait too long for the "file a.out" to
finish.

Feature was added in commit d3214198119 ("[gdb] Use partial symbol table to
find language for main").

This seems to have regressed.

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

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

end of thread, other threads:[~2023-10-30 16:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-21  7:34 [Bug symtab/30661] New: [gdb/symtab] main symbol language lookup causes symtab expansion vries at gcc dot gnu.org
2023-07-21  8:16 ` [Bug symtab/30661] " vries at gcc dot gnu.org
2023-07-21  9:02 ` vries at gcc dot gnu.org
2023-07-21  9:53 ` vries at gcc dot gnu.org
2023-07-21 14:12 ` vries at gcc dot gnu.org
2023-07-31 14:16 ` vries at gcc dot gnu.org
2023-08-04 11:24 ` vries at gcc dot gnu.org
2023-08-05 15:57 ` cvs-commit at gcc dot gnu.org
2023-08-05 16:01 ` vries at gcc dot gnu.org
2023-10-30 16:14 ` josh.cottingham at linaro dot 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).