diff options
Diffstat (limited to 'main/ltrace/fix-crash-on-int3-after-symcall.patch')
-rw-r--r-- | main/ltrace/fix-crash-on-int3-after-symcall.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main/ltrace/fix-crash-on-int3-after-symcall.patch b/main/ltrace/fix-crash-on-int3-after-symcall.patch new file mode 100644 index 0000000000..5e0a7911ce --- /dev/null +++ b/main/ltrace/fix-crash-on-int3-after-symcall.patch @@ -0,0 +1,14 @@ +diff -upr ltrace-0.6.0.orig/handle_event.c ltrace-0.6.0/handle_event.c +--- ltrace-0.6.0.orig/handle_event.c 2011-01-07 21:29:30.000000000 +0200 ++++ ltrace-0.6.0/handle_event.c 2012-01-06 05:14:04.000000000 +0200 +@@ -617,6 +617,10 @@ handle_breakpoint(Event *event) { + } + + if ((sbp = address2bpstruct(event->proc, event->e_un.brk_addr))) { ++ if (sbp->libsym == NULL) { ++ continue_after_breakpoint(event->proc, sbp); ++ return; ++ } + if (strcmp(sbp->libsym->name, "") == 0) { + debug(2, "Hit _dl_debug_state breakpoint!\n"); + arch_check_dbg(event->proc); |