public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/30829] New: [gdb/symtab] Review write_gdbindex for dwz
@ 2023-09-07 13:15 vries at gcc dot gnu.org
  2023-09-07 17:50 ` [Bug symtab/30829] " tromey at sourceware dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: vries at gcc dot gnu.org @ 2023-09-07 13:15 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30829
           Summary: [gdb/symtab] Review write_gdbindex for dwz
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: minor
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

While working on fixing PR3082, I noticed a few things in write_gdbindex.

We do this:
...
      const auto insertpair = cu_index_htab.emplace (per_cu, counter);
...
which looks incorrect for per_cu->is_dwz.

Then we do:
...
      data_buf &cu_list = (per_cu->is_debug_types
                           ? types_cu_list
                           : per_cu->is_dwz ? dwz_cu_list : objfile_cu_list);
  ...
  write_gdbindex_1 (dwz_out_file, dwz_cu_list, {}, {}, {}, {});
...
which seems to exclude the possibility that a dwz file has a .debug_types
section.

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

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

end of thread, other threads:[~2023-09-12 10:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-07 13:15 [Bug symtab/30829] New: [gdb/symtab] Review write_gdbindex for dwz vries at gcc dot gnu.org
2023-09-07 17:50 ` [Bug symtab/30829] " tromey at sourceware dot org
2023-09-08  5:54 ` vries at gcc dot gnu.org
2023-09-08 12:59 ` vries at gcc dot gnu.org
2023-09-08 13:14 ` vries at gcc dot gnu.org
2023-09-08 13:24 ` vries at gcc dot gnu.org
2023-09-12  8:46 ` vries at gcc dot gnu.org
2023-09-12 10:01 ` vries at gcc dot gnu.org
2023-09-12 10:05 ` 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).