1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/ltrace/0.5.3/140-mips.patch Thu Jun 14 23:04:28 2012 +0200
1.3 @@ -0,0 +1,40 @@
1.4 +This patch is courtesy of OpenEmbedded, by Khem Raj <raj.khem@gmail.com>
1.5 +
1.6 +http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=b85b779688f0abc389e3c25d06b54de8b86385c1
1.7 +
1.8 +Index: ltrace-0.5.3/sysdeps/linux-gnu/mipsel/plt.c
1.9 +===================================================================
1.10 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/mipsel/plt.c 2009-10-23 23:25:59.292780574 -0700
1.11 ++++ ltrace-0.5.3/sysdeps/linux-gnu/mipsel/plt.c 2009-10-23 23:26:22.671522220 -0700
1.12 +@@ -1,4 +1,4 @@
1.13 +-#include <debug.h>
1.14 ++#include "debug.h"
1.15 + #include <gelf.h>
1.16 + #include <sys/ptrace.h>
1.17 + #include "common.h"
1.18 +Index: ltrace-0.5.3/sysdeps/linux-gnu/mipsel/regs.c
1.19 +===================================================================
1.20 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/mipsel/regs.c 2009-10-23 23:25:59.312777529 -0700
1.21 ++++ ltrace-0.5.3/sysdeps/linux-gnu/mipsel/regs.c 2009-10-23 23:26:08.190311896 -0700
1.22 +@@ -4,7 +4,6 @@
1.23 + #include <sys/types.h>
1.24 + #include <sys/ptrace.h>
1.25 + #include <asm/ptrace.h>
1.26 +-#include <linux/user.h>
1.27 +
1.28 + #include "common.h"
1.29 + #include "mipsel.h"
1.30 +Index: ltrace-0.5.3/handle_event.c
1.31 +===================================================================
1.32 +--- ltrace-0.5.3.orig/handle_event.c 2009-10-23 23:29:48.780274445 -0700
1.33 ++++ ltrace-0.5.3/handle_event.c 2009-10-23 23:37:32.260284055 -0700
1.34 +@@ -573,7 +573,8 @@ handle_breakpoint(Event *event) {
1.35 + void *old_addr;
1.36 + struct library_symbol *sym= event->proc->callstack[i].c_un.libfunc;
1.37 + assert(sym);
1.38 +- old_addr = dict_find_entry(event->proc->breakpoints, sym2addr(event->proc, sym))->addr;
1.39 ++ struct Breakpoint *tbp = dict_find_entry(event->proc->breakpoints, sym2addr(event->proc, sym));
1.40 ++ old_addr = tbp->addr;
1.41 + addr=sym2addr(event->proc,sym);
1.42 + assert(old_addr !=0 && addr !=0);
1.43 + if(addr != old_addr){