]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add obj_section::contains method
authorTom Tromey <tom@tromey.com>
Sat, 10 Feb 2024 22:03:18 +0000 (15:03 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 20 Feb 2024 15:52:33 +0000 (08:52 -0700)
commit94a75b0363b1e09416e9bd24cac72d98864688d8
treef4b83dd7c2150d7fef8bcb76dfddd4da735a1b52
parent8480a37e146c40e82a93c0ecf6144571516c95c5
Add obj_section::contains method

I noticed a number of spots checking whether an address is in an
obj_section.  This patch introduces a new method for this and changes
some code to use it.

Regression tested on x86-64 Fedora 38.

Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/minsyms.c
gdb/objfiles.c
gdb/objfiles.h
gdb/printcmd.c
gdb/symfile.c