aboutsummaryrefslogtreecommitdiffstats
path: root/main/ltrace/fix-crash-on-int3-after-symcall.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-25 12:50:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-25 12:50:58 +0000
commit2292aea758cad4707d6db06e1236f2719aec5b38 (patch)
tree767d26690bbc135177da6a75ac448e3f13a7a756 /main/ltrace/fix-crash-on-int3-after-symcall.patch
parent9b1ea25937b6b934843d7bef8ebc399189292619 (diff)
downloadaports-2292aea758cad4707d6db06e1236f2719aec5b38.tar.bz2
aports-2292aea758cad4707d6db06e1236f2719aec5b38.tar.xz
main/ltrace: upgrade to 0.6.0
Diffstat (limited to 'main/ltrace/fix-crash-on-int3-after-symcall.patch')
-rw-r--r--main/ltrace/fix-crash-on-int3-after-symcall.patch14
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);