diff options
author | Tom Tromey <tom@tromey.com> | 2024-09-12 17:22:24 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-09-13 12:29:37 -0600 |
commit | 246119630a8a6c487567758ce083645624d09909 (patch) | |
tree | 8c1c78e367086589c7e33df10811e2cfbea87d2b /gdb/psymtab.c | |
parent | 24e5f9742611dbda04bb7e40c94c48637ecc0a21 (diff) | |
download | fsf-binutils-gdb-246119630a8a6c487567758ce083645624d09909.zip fsf-binutils-gdb-246119630a8a6c487567758ce083645624d09909.tar.gz fsf-binutils-gdb-246119630a8a6c487567758ce083645624d09909.tar.bz2 |
Update more types for section index change
Commit f89276a2f3e ("change type of `general_symbol_info::m_section`
to int") did what it says in the title -- changed the type of the
section index from short to int. However, it seems incomplete, in
that there are uses of the section index that use the type 'short'.
This patch fixes the ones I found, first by searching for
"short.*sect" and then by looking at all the callers of section_index
(and then functions called with the resulting value) just to try to be
more sure.
Approved-by: Kevin Buettner <kevinb@redhat.com>
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 0df3dc8..e25c3ab 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1082,7 +1082,7 @@ void partial_symtab::add_psymbol (std::string_view name, bool copy_name, domain_enum domain, enum address_class theclass, - short section, + int section, psymbol_placement where, unrelocated_addr coreaddr, enum language language, |