From 3c44233cda70fca966ba29e08b61db8154e9ff00 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Tue, 8 Dec 2009 13:03:55 -0500 Subject: [PATCH] fix gdb integration bug --- libust/marker.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libust/marker.c b/libust/marker.c index da16e4f6..d9cb88fc 100644 --- a/libust/marker.c +++ b/libust/marker.c @@ -1517,10 +1517,12 @@ int marker_register_lib(struct marker *markers_start, struct marker_addr *marker #endif pl->markers_count = markers_count; +#ifdef CONFIG_UST_GDB_INTEGRATION lock_markers(); for(addr = marker_addr_start; addr < marker_addr_start + markers_count; addr++) addr->marker->location = addr->addr; unlock_markers(); +#endif /* FIXME: maybe protect this with its own mutex? */ lock_markers(); -- 2.34.1