]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: Fix build for gnu hurd
authorEtienne Brateau <etienne.brateau@gmail.com>
Tue, 9 Jun 2026 08:27:57 +0000 (10:27 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 9 Jun 2026 08:27:57 +0000 (10:27 +0200)
Commit 695fd5ec122 ("gdb: make find_memory_region_ftype a function_view")
broke the build for gnu hurd.  Fix this.

Approved-By: Tom de Vries <tdevries@suse.de>
gdb/gnu-nat.c
gdb/gnu-nat.h

index 985aa14debc93186c1017d907e9ebf1ec296e908..4999734b6d9635daba635579d8cbca8a5a7ee4c6 100644 (file)
@@ -2617,7 +2617,7 @@ gnu_nat_target::find_memory_regions (find_memory_region_ftype func)
          /* This region is distinct from the last one we saw, so report
             that previous one.  */
          if (last_protection != VM_PROT_NONE)
-           (*func) (last_region_address,
+           func (last_region_address,
                     last_region_end - last_region_address,
                     last_protection & VM_PROT_READ,
                     last_protection & VM_PROT_WRITE,
index f4b3e3daec21bd852849fc23b82e509d9443e505..2ab06c8078e086e234cd829adc4c2fe89b67b04a 100644 (file)
@@ -130,7 +130,7 @@ struct gnu_nat_target : public inf_child_target
                                        ULONGEST offset, ULONGEST len,
                                        ULONGEST *xfered_len) override;
 
-  bool find_memory_regions (find_memory_region_ftype func, void *data)
+  bool find_memory_regions (find_memory_region_ftype func)
     override;
   void kill () override;