Fix: don't assert on lib unload failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 23 Jul 2016 19:59:30 +0000 (15:59 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 23 Jul 2016 19:59:30 +0000 (15:59 -0400)
A library's load event might have been missed because of
discarded events. In this scenario, it is expected that its
mapping will not be found on unload.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/debug-info.c

index 212238640ec223d9cc29470471fe6f3efd4fc1b5..6acf174655b2b71c16f18eac26c8937d0b2c770c 100644 (file)
@@ -746,8 +746,8 @@ void handle_lib_unload_event(struct debug_info *debug_info,
        }
 
        key_ptr = (gpointer) &baddr;
-       assert(g_hash_table_remove(proc_dbg_info_src->baddr_to_bin_info,
-                       key_ptr));
+       (void) g_hash_table_remove(proc_dbg_info_src->baddr_to_bin_info,
+                       key_ptr);
 end:
        return;
 }
This page took 0.024984 seconds and 4 git commands to generate.