From: Pierre-Marc Fournier Date: Tue, 8 Dec 2009 18:03:55 +0000 (-0500) Subject: fix gdb integration bug X-Git-Tag: v0.1~40 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3c44233cda70fca966ba29e08b61db8154e9ff00;p=ust.git fix gdb integration bug --- diff --git a/libust/marker.c b/libust/marker.c index da16e4f..d9cb88f 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();