]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blobdiff - gdb/patches/gdb-moribund-utrace-workaround.patch
gdb: Update to 7.3.50.20110722.
[people/pmueller/ipfire-3.x.git] / gdb / patches / gdb-moribund-utrace-workaround.patch
diff --git a/gdb/patches/gdb-moribund-utrace-workaround.patch b/gdb/patches/gdb-moribund-utrace-workaround.patch
new file mode 100644 (file)
index 0000000..6b50a8e
--- /dev/null
@@ -0,0 +1,16 @@
+https://bugzilla.redhat.com/show_bug.cgi?id=590623
+http://sources.redhat.com/bugzilla/show_bug.cgi?id=11593
+
+Bug in FSF GDB exploited by the ptrace-on-utrace interaction.
+
+--- a/gdb/breakpoint.c
++++ b/gdb/breakpoint.c
+@@ -9084,6 +9084,8 @@ update_global_location_list (int should_insert)
+                traps we can no longer explain.  */
+             old_loc->events_till_retirement = 3 * (thread_count () + 1);
++            /* Red Hat Bug 590623.  */
++            old_loc->events_till_retirement *= 10;
+             old_loc->owner = NULL;
+             VEC_safe_push (bp_location_p, moribund_locations, old_loc);