fix gdb integration bug
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 8 Dec 2009 18:03:55 +0000 (13:03 -0500)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 8 Dec 2009 18:03:55 +0000 (13:03 -0500)
libust/marker.c

index da16e4f681dcf1e025f685a0be7c8c0925ddd941..d9cb88fca96b7c0f8521e32b1c270ed1ae549df7 100644 (file)
@@ -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();
This page took 0.025224 seconds and 4 git commands to generate.