gdb/gdb-moribund-utrace-workaround.patch
OBS User autobuild 8ed182f504 Accepting request 40473 from devel:gcc
Copy from devel:gcc/gdb based on submit request 40473 from user rguenther

OBS-URL: https://build.opensuse.org/request/show/40473
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdb?expand=0&rev=74
2010-05-25 12:02:22 +00:00

17 lines
582 B
Diff

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);