diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-05-29 22:15:31 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2011-05-30 11:28:58 +0200 |
commit | 3087fa5c4ab4ad5ee3dae251d1477302044aab49 (patch) | |
tree | abfb335380140cc0aaa1926995ae0b11dae432ad /meta-oe/recipes-devtools/ltrace/files/ltrace-mips.patch | |
parent | 71565bbff3f693546ee32537cf05762d08131edc (diff) | |
download | meta-openembedded-3087fa5c4ab4ad5ee3dae251d1477302044aab49.tar.gz |
ltrace: import from OE rev d4f0211e2078d5033ae0dee74664de5520d8392d
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/ltrace/files/ltrace-mips.patch')
-rw-r--r-- | meta-oe/recipes-devtools/ltrace/files/ltrace-mips.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/ltrace/files/ltrace-mips.patch b/meta-oe/recipes-devtools/ltrace/files/ltrace-mips.patch new file mode 100644 index 000000000..6df5e211a --- /dev/null +++ b/meta-oe/recipes-devtools/ltrace/files/ltrace-mips.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | Index: ltrace-0.5.3/sysdeps/linux-gnu/mipsel/plt.c | ||
2 | =================================================================== | ||
3 | --- ltrace-0.5.3.orig/sysdeps/linux-gnu/mipsel/plt.c 2009-10-23 23:25:59.292780574 -0700 | ||
4 | +++ ltrace-0.5.3/sysdeps/linux-gnu/mipsel/plt.c 2009-10-23 23:26:22.671522220 -0700 | ||
5 | @@ -1,4 +1,4 @@ | ||
6 | -#include <debug.h> | ||
7 | +#include "debug.h" | ||
8 | #include <gelf.h> | ||
9 | #include <sys/ptrace.h> | ||
10 | #include "common.h" | ||
11 | Index: ltrace-0.5.3/sysdeps/linux-gnu/mipsel/regs.c | ||
12 | =================================================================== | ||
13 | --- ltrace-0.5.3.orig/sysdeps/linux-gnu/mipsel/regs.c 2009-10-23 23:25:59.312777529 -0700 | ||
14 | +++ ltrace-0.5.3/sysdeps/linux-gnu/mipsel/regs.c 2009-10-23 23:26:08.190311896 -0700 | ||
15 | @@ -4,7 +4,6 @@ | ||
16 | #include <sys/types.h> | ||
17 | #include <sys/ptrace.h> | ||
18 | #include <asm/ptrace.h> | ||
19 | -#include <linux/user.h> | ||
20 | |||
21 | #include "common.h" | ||
22 | #include "mipsel.h" | ||
23 | Index: ltrace-0.5.3/handle_event.c | ||
24 | =================================================================== | ||
25 | --- ltrace-0.5.3.orig/handle_event.c 2009-10-23 23:29:48.780274445 -0700 | ||
26 | +++ ltrace-0.5.3/handle_event.c 2009-10-23 23:37:32.260284055 -0700 | ||
27 | @@ -573,7 +573,8 @@ handle_breakpoint(Event *event) { | ||
28 | void *old_addr; | ||
29 | struct library_symbol *sym= event->proc->callstack[i].c_un.libfunc; | ||
30 | assert(sym); | ||
31 | - old_addr = dict_find_entry(event->proc->breakpoints, sym2addr(event->proc, sym))->addr; | ||
32 | + struct Breakpoint *tbp = dict_find_entry(event->proc->breakpoints, sym2addr(event->proc, sym)); | ||
33 | + old_addr = tbp->addr; | ||
34 | addr=sym2addr(event->proc,sym); | ||
35 | assert(old_addr !=0 && addr !=0); | ||
36 | if(addr != old_addr){ | ||