Bug 32520 - Add maint command to check index integrity
Summary: Add maint command to check index integrity
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: symtab (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Tom Tromey
URL:
Keywords:
Depends on:
Blocks: 29366 16998
  Show dependency treegraph
 
Reported: 2025-01-05 19:25 UTC by Tom Tromey
Modified: 2025-01-10 15:04 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2025-01-05 19:25:12 UTC
Right now, "maint check-psymtabs" exists to check psymtabs,
but there's no equivalent for the cooked index.

This would be a good addition.
Comment 1 Tom Tromey 2025-01-07 17:42:57 UTC
I have a patch that overloads check-psymtabs to do this.
Comment 2 Tom Tromey 2025-01-07 19:02:12 UTC
Running this on gdb itself shows a lot of problems:

(gdb) maint expand-symtabs 
(gdb) | maint check-psymtabs | wc -l
159122
Comment 3 Tom Tromey 2025-01-10 15:04:27 UTC
I suspect my current patch is a bit broken since it
also reports a large number of failures in Ada programs.