From 70125a45e426167957fc5c5255e7a1e381d688f9 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 19 Nov 2020 10:34:57 -0500 Subject: gdb: remove `other` parameter in read_core_file_mappings parameter The `void *other` parameter in read_core_file_mappings' loop_cb parameter is never used, remove it. gdb/ChangeLog: * gdbarch.sh (read_core_file_mappings): Remove `other` parameter in `loop_cb` parameter. * gdbarch.c: Re-generate. * gdbarch.h: Re-generate. * arch-utils.c (default_read_core_file_mappings): Remove `other` parameter. * arch-utils.h (default_read_core_file_mappings): Likewise. * corelow.c (core_target::build_file_mappings): Likewise. * linux-tdep.c (linux_read_core_file_mappings): Likewise. (linux_core_info_proc_mappings): Likewise. Change-Id: I6f408b4962b61b8a603642a844772b3026625523 --- gdb/linux-tdep.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gdb/linux-tdep.c') diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 8f7bbd5..a651d1b 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -1072,8 +1072,7 @@ linux_read_core_file_mappings (struct gdbarch *gdbarch, ULONGEST start, ULONGEST end, ULONGEST file_ofs, - const char *filename, - const void *other)> + const char *filename)> loop_cb) { /* Ensure that ULONGEST is big enough for reading 64-bit core files. */ @@ -1157,7 +1156,7 @@ linux_read_core_file_mappings (struct gdbarch *gdbarch, char * filename = filenames; filenames += strlen ((char *) filenames) + 1; - loop_cb (i, start, end, file_ofs, filename, nullptr); + loop_cb (i, start, end, file_ofs, filename); } } @@ -1186,7 +1185,7 @@ linux_core_info_proc_mappings (struct gdbarch *gdbarch, const char *args) } }, [=] (int num, ULONGEST start, ULONGEST end, ULONGEST file_ofs, - const char *filename, const void *other) + const char *filename) { if (gdbarch_addr_bit (gdbarch) == 32) printf_filtered ("\t%10s %10s %10s %10s %s\n", -- cgit v1.1