public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/30996] New: [gdb/symtab, gdb-index] Write name_of_main/language_of_main into .gdb_index in more cases
@ 2023-10-24  8:18 vries at gcc dot gnu.org
  2023-10-24 20:19 ` [Bug symtab/30996] " tromey at sourceware dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2023-10-24  8:18 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30996
           Summary: [gdb/symtab, gdb-index] Write
                    name_of_main/language_of_main into .gdb_index in more
                    cases
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

[ Reported here:
https://sourceware.org/pipermail/gdb-patches/2023-October/203488.html ]

The v9 .gdb_index contains a shortcut table, but it doesn't always contain
information.

For instance, this is the case for C and C++ programs.

Making this information available in more cases will speed up gdb startup if 
finding the language of main requires expanding a large CU.

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

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

* [Bug symtab/30996] [gdb/symtab, gdb-index] Write name_of_main/language_of_main into .gdb_index in more cases
  2023-10-24  8:18 [Bug symtab/30996] New: [gdb/symtab, gdb-index] Write name_of_main/language_of_main into .gdb_index in more cases vries at gcc dot gnu.org
@ 2023-10-24 20:19 ` tromey at sourceware dot org
  2023-10-25  7:34 ` vries at gcc dot gnu.org
  2023-10-25  8:43 ` sam at gentoo dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2023-10-24 20:19 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
This may be easier once bug#30174 is done.

Many languages use minsyms here, which is fast.
The danger would be to have a scenario where
the DWARF reader picks "main", but in reality
gdb should choose some other language (e.g, Ada).

But maybe we can special-case "main" in the main-finding
function.

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

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

* [Bug symtab/30996] [gdb/symtab, gdb-index] Write name_of_main/language_of_main into .gdb_index in more cases
  2023-10-24  8:18 [Bug symtab/30996] New: [gdb/symtab, gdb-index] Write name_of_main/language_of_main into .gdb_index in more cases vries at gcc dot gnu.org
  2023-10-24 20:19 ` [Bug symtab/30996] " tromey at sourceware dot org
@ 2023-10-25  7:34 ` vries at gcc dot gnu.org
  2023-10-25  8:43 ` sam at gentoo dot org
  2 siblings, 0 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2023-10-25  7:34 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #0)
> Making this information available in more cases will speed up gdb startup if
> finding the language of main requires expanding a large CU.

FWIW, implementing lazy expansion ( PR29398 ) might also address this problem
sufficiently.

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

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

* [Bug symtab/30996] [gdb/symtab, gdb-index] Write name_of_main/language_of_main into .gdb_index in more cases
  2023-10-24  8:18 [Bug symtab/30996] New: [gdb/symtab, gdb-index] Write name_of_main/language_of_main into .gdb_index in more cases vries at gcc dot gnu.org
  2023-10-24 20:19 ` [Bug symtab/30996] " tromey at sourceware dot org
  2023-10-25  7:34 ` vries at gcc dot gnu.org
@ 2023-10-25  8:43 ` sam at gentoo dot org
  2 siblings, 0 replies; 4+ messages in thread
From: sam at gentoo dot org @ 2023-10-25  8:43 UTC (permalink / raw)
  To: gdb-prs

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

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

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

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

end of thread, other threads:[~2023-10-25  8:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-24  8:18 [Bug symtab/30996] New: [gdb/symtab, gdb-index] Write name_of_main/language_of_main into .gdb_index in more cases vries at gcc dot gnu.org
2023-10-24 20:19 ` [Bug symtab/30996] " tromey at sourceware dot org
2023-10-25  7:34 ` vries at gcc dot gnu.org
2023-10-25  8:43 ` sam at gentoo 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).