gdb/gdb-moribund-utrace-workaround.patch

19 lines
630 B
Diff
Raw Normal View History

2019-09-30 10:39:25 -04:00
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.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
2020-01-13 14:20:40 +08:00
@@ -11929,6 +11929,8 @@ update_global_location_list (enum ugll_insert_mode insert_mode)
2019-09-30 10:39:25 -04:00
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;
2020-01-13 14:20:40 +08:00
moribund_locations.push_back (old_loc);