diff options
author | Tom Tromey <tom@tromey.com> | 2025-09-22 09:08:46 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2025-10-14 10:18:09 -0600 |
commit | f283e80fed61096b39c17dc325ad13926aaafef0 (patch) | |
tree | 64c94d658ca25b9e6418f284e754c40869c6856f /gdb/python/py-block.c | |
parent | 94a0adaca0c84c645acc45e28662a4cbaeb75fbe (diff) | |
download | binutils-f283e80fed61096b39c17dc325ad13926aaafef0.zip binutils-f283e80fed61096b39c17dc325ad13926aaafef0.tar.gz binutils-f283e80fed61096b39c17dc325ad13926aaafef0.tar.bz2 |
Fix use of "main" marker in gdb index
Tom de Vries noticed that with .gdb_index, the "main" marker would
sometimes seemingly be ignored.
I tracked this down to an interaction between the rewritten reader and
the "main"-finding code in cooked_index. With the ordinary DWARF
scanner, a C "main" won't be marked as IS_MAIN; whereas with
.gdb_index this can happen. In this case, the code thinks that C
requires canonicalization (which is only true for types), and skips
using the symbol.
This patch fixes the problem and adds some comments explaining what is
going on.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33441
Diffstat (limited to 'gdb/python/py-block.c')
0 files changed, 0 insertions, 0 deletions