diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-20 17:18:57 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-27 22:05:03 -0400 |
commit | bad9471aab31d1b5aa733b8985b8e40e2a97b8e7 (patch) | |
tree | 2306af7ad3d6f4ee2335436b408bc6af593976fe /gdb/addrmap.h | |
parent | 63d609debba854d08a515f73d0ad8e4ef8948370 (diff) | |
download | gdb-bad9471aab31d1b5aa733b8985b8e40e2a97b8e7.zip gdb-bad9471aab31d1b5aa733b8985b8e40e2a97b8e7.tar.gz gdb-bad9471aab31d1b5aa733b8985b8e40e2a97b8e7.tar.bz2 |
gdb: constify addrmap_find
addrmap_find shouldn't need to modify the addrmap, so constify the
addrmap parameter. This helps for the following patch, where getting
the map of a const blockvector will return a const addrmap.
Change-Id: If670e425ed013724a3a77aab7961db50366dccb2
Diffstat (limited to 'gdb/addrmap.h')
-rw-r--r-- | gdb/addrmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/addrmap.h b/gdb/addrmap.h index 54567fa..412e428 100644 --- a/gdb/addrmap.h +++ b/gdb/addrmap.h @@ -82,7 +82,7 @@ void addrmap_set_empty (struct addrmap *map, void *obj); /* Return the object associated with ADDR in MAP. */ -void *addrmap_find (struct addrmap *map, CORE_ADDR addr); +void *addrmap_find (const addrmap *map, CORE_ADDR addr); /* Create a fixed address map which is a copy of the mutable address map ORIGINAL. Allocate entries in OBSTACK. */ |