]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: Move dbx_end_psymtab to stabsread, and rename to stabs_end_psymtab
authorGuinevere Larsen <guinevere@redhat.com>
Mon, 9 Sep 2024 18:06:29 +0000 (15:06 -0300)
committerGuinevere Larsen <guinevere@redhat.com>
Fri, 20 Sep 2024 20:02:09 +0000 (17:02 -0300)
commit64a1f185b376c83278d1fe2ef0ad8a79aeffcb24
tree48d97e9d16b4f89210bbf25f9652437ee2516fc3
parent5b64a6127f9898e45374de4fe76e3538b3ada532
gdb: Move dbx_end_psymtab to stabsread, and rename to stabs_end_psymtab

This function is used by multiple stabs readers (even if not all), and
the comment in stabsread.h even acknowledges it. I believe that the
comment is incorrect in saying that the function should be in dbxread
because not everyone uses it. If any one reader other than dbx uses
it, the function should be in stabsread, in my opinion.

This commit makes also renames the function to stabs_end_psymtab since,
again, this is not specific to dbx/aout format.

struct symloc had to be moved because stabs_end_psymtab dereferences
symloc objects, so stabsread.c must be aware of the full struct.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/dbxread.c
gdb/mdebugread.c
gdb/stabsread.c
gdb/stabsread.h
gdb/symtab.h