]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb] Make addrmap_mutable::set_empty return bool
authorTom de Vries <tdevries@suse.de>
Sat, 23 Aug 2025 04:11:41 +0000 (06:11 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 23 Aug 2025 04:11:41 +0000 (06:11 +0200)
commit3c7cd14c1601c7245c867eda798a79305a28eedc
tree371cbecb8f3ea37b76ed4c679af91200e8c878e1
parent5a74ce37a50c8675ecfb10973eb1ec9139f36bd5
[gdb] Make addrmap_mutable::set_empty return bool

Function addrmap_mutable::set_empty has the follow behavior (shortened
comment):
...
/* In the mutable address map MAP, associate the addresses from START
   to END_INCLUSIVE that are currently associated with NULL with OBJ
   instead.  Addresses mapped to an object other than NULL are left
   unchanged.  */
  void set_empty (CORE_ADDR start, CORE_ADDR end_inclusive,
  void *obj);
...

Change the return type to bool, and return true if the full range
[START, END_INCLUSIVE] is mapped to OBJ.

Tested on x86_64-linux.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/addrmap.c
gdb/addrmap.h