aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-04-30 15:48:21 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-05-09 10:10:50 +0100
commitcba95c27876724059c3e99ea1857fb19b9cf8220 (patch)
treea8cf28cd5e5347b3c2179c2bd6a2295409e05bfb /gdb/solib-svr4.c
parentcb1a6b85b84359419e7fcf9069c3ba9d27a856c7 (diff)
downloadgdb-cba95c27876724059c3e99ea1857fb19b9cf8220.zip
gdb-cba95c27876724059c3e99ea1857fb19b9cf8220.tar.gz
gdb-cba95c27876724059c3e99ea1857fb19b9cf8220.tar.bz2
gdb: convert address_in_mem_range to mem_range::contains
Replace the global function address_in_mem_range with the member function mem_range::contains. The implementation of the function doesn't change. There should be no user visible changes after this commit. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r--gdb/solib-svr4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 1dd04c2..1d4a505 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -1475,7 +1475,7 @@ svr4_current_sos ()
auto *li = gdb::checked_static_cast<lm_info_svr4 *> (so->lm_info.get ());
- if (address_in_mem_range (li->l_ld, &vsyscall_range))
+ if (vsyscall_range.contains (li->l_ld))
{
auto next = sos.erase (so);
delete &*so;