]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
CTF: add all members of an enum type to psymtab
authorWeimin Pan <weimin.pan@oracle.com>
Sat, 6 Mar 2021 00:17:00 +0000 (19:17 -0500)
committerWeimin Pan <weimin.pan@oracle.com>
Sat, 6 Mar 2021 01:46:39 +0000 (20:46 -0500)
commitdd99cf0c580ac7b989a991283fa9f3eab07aec99
treefa00af9e843598266fa0bf68a7818e3e3c7b8b54
parent844be3f24027a13630dc0f67e006eee2ee5c6776
CTF: add all members of an enum type to psymtab

With the following change which was made last April:

    [gdb] Use partial symbol table to find language for main
    commit d3214198119c1a2f9a6a2b8fcc56d8c324e1a245

The ctf reader was modified to enter all members of an enum type,
similar to what the dwarf2 reader did, into the psymtab or gdb
won't be able to find them. In addition, the empty name checking
needed to be moved down so members of a unnamed enum were not left
out.

gdb/ChangeLog:

* ctfread.c (ctf_psymtab_add_enums): New function.
(ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
gdb/ChangeLog
gdb/ctfread.c