]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/psymtab.c
Introduce new add_psymbol_to_list overload
authorTom Tromey <tom@tromey.com>
Fri, 24 Apr 2020 21:35:01 +0000 (15:35 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 24 Apr 2020 21:35:02 +0000 (15:35 -0600)
commit2467f4f6a533a28047e0b45ce716b9b1f9f72a09
tree37cdfd4694fccb2788dcfd8096264b0fca1bdf1b
parente61108c92d4bc4021ab89671612308c01b18e15d
Introduce new add_psymbol_to_list overload

This adds a new overload of add_psymbol_to_list.  This one takes an
already constructed psymbol and adds it to the bcache and the
appropriate list.

This seemed cleaner than continuing to add parameters to the existing
add_psymbol_to_list, and is more in line with how full symbols are
constructed.

gdb/ChangeLog
2020-04-24  Tom Tromey  <tom@tromey.com>

* psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
(add_psymbol_to_list): New overload.  Make old overload call new
one.
* psympriv.h (add_psymbol_to_list): New overload.
gdb/ChangeLog
gdb/psympriv.h
gdb/psymtab.c