aboutsummaryrefslogtreecommitdiff
path: root/gdb/addrmap.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2007-12-06 23:37:35 +0000
committerJim Blandy <jimb@codesourcery.com>2007-12-06 23:37:35 +0000
commitcb446409e69a10b9a471bbcdf73a1108c7ff93f1 (patch)
tree0520e9cf01451dead0b8e38d7d4ba1a4859f3984 /gdb/addrmap.c
parentf4f7091ffef088b67d1658072ac1b7fdece3d07a (diff)
downloadfsf-binutils-gdb-cb446409e69a10b9a471bbcdf73a1108c7ff93f1.zip
fsf-binutils-gdb-cb446409e69a10b9a471bbcdf73a1108c7ff93f1.tar.gz
fsf-binutils-gdb-cb446409e69a10b9a471bbcdf73a1108c7ff93f1.tar.bz2
* addrmap.c (addrmap_splay_tree_remove): New function.
(addrmap_mutable_set_empty): Use it.
Diffstat (limited to 'gdb/addrmap.c')
-rw-r--r--gdb/addrmap.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/addrmap.c b/gdb/addrmap.c
index b2c0bce..223659f 100644
--- a/gdb/addrmap.c
+++ b/gdb/addrmap.c
@@ -252,6 +252,13 @@ addrmap_splay_tree_successor (struct addrmap_mutable *map, CORE_ADDR addr)
}
+static void
+addrmap_splay_tree_remove (struct addrmap_mutable *map, CORE_ADDR addr)
+{
+ splay_tree_remove (map->tree, (splay_tree_key) &addr);
+}
+
+
static CORE_ADDR
addrmap_node_key (splay_tree_node node)
{
@@ -347,7 +354,7 @@ addrmap_mutable_set_empty (struct addrmap *this,
{
next = addrmap_splay_tree_successor (map, addrmap_node_key (n));
if (addrmap_node_value (n) == prior_value)
- splay_tree_remove (map->tree, addrmap_node_key (n));
+ addrmap_splay_tree_remove (map, addrmap_node_key (n));
else
prior_value = addrmap_node_value (n);
}