summaryrefslogtreecommitdiff
path: root/packages/ltrace/0.5.3/0004-mips.patch
blob: f477fa72500c1296d4229a62f98df40dd5e87da3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
This patch is courtesy of OpenEmbedded, by Khem Raj <raj.khem@gmail.com>

http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=b85b779688f0abc389e3c25d06b54de8b86385c1

---
 handle_event.c                  |    3 ++-
 sysdeps/linux-gnu/mipsel/plt.c  |    2 +-
 sysdeps/linux-gnu/mipsel/regs.c |    1 -
 3 files changed, 3 insertions(+), 3 deletions(-)

--- a/sysdeps/linux-gnu/mipsel/plt.c
+++ b/sysdeps/linux-gnu/mipsel/plt.c
@@ -1,4 +1,4 @@
-#include <debug.h>
+#include "debug.h"
 #include <gelf.h>
 #include <sys/ptrace.h>
 #include "common.h"
--- a/sysdeps/linux-gnu/mipsel/regs.c
+++ b/sysdeps/linux-gnu/mipsel/regs.c
@@ -4,7 +4,6 @@
 #include <sys/types.h>
 #include <sys/ptrace.h>
 #include <asm/ptrace.h>
-#include <linux/user.h>
 
 #include "common.h"
 #include "mipsel.h"
--- a/handle_event.c
+++ b/handle_event.c
@@ -573,7 +573,8 @@
 			void *old_addr;
 			struct library_symbol *sym= event->proc->callstack[i].c_un.libfunc;
 			assert(sym);
-			old_addr = dict_find_entry(event->proc->breakpoints, sym2addr(event->proc, sym))->addr;
+			struct Breakpoint *tbp = dict_find_entry(event->proc->breakpoints, sym2addr(event->proc, sym));
+			old_addr = tbp->addr;
 			addr=sym2addr(event->proc,sym);
 			assert(old_addr !=0 && addr !=0);
 			if(addr != old_addr){