diff options
author | Matthew McClintock <msm@freescale.com> | 2012-05-26 00:33:10 +0000 |
---|---|---|
committer | Zhenhua Luo <b19537@freescale.com> | 2012-05-29 18:49:11 +0800 |
commit | 45d072e7e7de2edfaf72f22f06e57e3ee171e552 (patch) | |
tree | 2803f73fff7ff333723a2a36034e828465e0fd28 | |
parent | 6f19d6a79ae5a6bf9f249e821a8781e2ecb053a9 (diff) | |
download | meta-fsl-ppc-45d072e7e7de2edfaf72f22f06e57e3ee171e552.tar.gz |
gdb: add patch to fix gdb issue
Fix decode of instructions on e500mc
Signed-off-by: Matthew McClintock <msm@freescale.com>
-rw-r--r-- | recipes-devtools/gdb/files/gdb-7.4.1-e500mc-disassemble-fix.patch | 13 | ||||
-rw-r--r-- | recipes-devtools/gdb/gdb-cross-canadian_7.3a.bbappend | 1 | ||||
-rw-r--r-- | recipes-devtools/gdb/gdb-cross_7.3a.bbappend | 1 | ||||
-rw-r--r-- | recipes-devtools/gdb/gdb-fsl.inc | 5 | ||||
-rw-r--r-- | recipes-devtools/gdb/gdb_7.3a.bbappend | 1 |
5 files changed, 21 insertions, 0 deletions
diff --git a/recipes-devtools/gdb/files/gdb-7.4.1-e500mc-disassemble-fix.patch b/recipes-devtools/gdb/files/gdb-7.4.1-e500mc-disassemble-fix.patch new file mode 100644 index 0000000..58ba394 --- /dev/null +++ b/recipes-devtools/gdb/files/gdb-7.4.1-e500mc-disassemble-fix.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: gdb-7.3/gdb/rs6000-tdep.c | ||
2 | =================================================================== | ||
3 | --- gdb-7.3.orig/gdb/rs6000-tdep.c | ||
4 | +++ gdb-7.3/gdb/rs6000-tdep.c | ||
5 | @@ -3088,6 +3088,8 @@ gdb_print_insn_powerpc (bfd_vma memaddr, | ||
6 | cpu and get much more sane disassembly output. */ | ||
7 | if (info->mach == bfd_mach_ppc_e500) | ||
8 | info->disassembler_options = "e500x2"; | ||
9 | + else if (info->mach == bfd_mach_ppc_e500mc) | ||
10 | + info->disassembler_options = "e500mc"; | ||
11 | else | ||
12 | info->disassembler_options = "any"; | ||
13 | } | ||
diff --git a/recipes-devtools/gdb/gdb-cross-canadian_7.3a.bbappend b/recipes-devtools/gdb/gdb-cross-canadian_7.3a.bbappend new file mode 100644 index 0000000..db120d6 --- /dev/null +++ b/recipes-devtools/gdb/gdb-cross-canadian_7.3a.bbappend | |||
@@ -0,0 +1 @@ | |||
require gdb-fsl.inc | |||
diff --git a/recipes-devtools/gdb/gdb-cross_7.3a.bbappend b/recipes-devtools/gdb/gdb-cross_7.3a.bbappend new file mode 100644 index 0000000..db120d6 --- /dev/null +++ b/recipes-devtools/gdb/gdb-cross_7.3a.bbappend | |||
@@ -0,0 +1 @@ | |||
require gdb-fsl.inc | |||
diff --git a/recipes-devtools/gdb/gdb-fsl.inc b/recipes-devtools/gdb/gdb-fsl.inc new file mode 100644 index 0000000..ce75f91 --- /dev/null +++ b/recipes-devtools/gdb/gdb-fsl.inc | |||
@@ -0,0 +1,5 @@ | |||
1 | PR_append_fsl = "+${DISTRO}.0" | ||
2 | |||
3 | SRC_URI_append_fsl = " file://gdb-7.4.1-e500mc-disassemble-fix.patch" | ||
4 | |||
5 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
diff --git a/recipes-devtools/gdb/gdb_7.3a.bbappend b/recipes-devtools/gdb/gdb_7.3a.bbappend new file mode 100644 index 0000000..db120d6 --- /dev/null +++ b/recipes-devtools/gdb/gdb_7.3a.bbappend | |||
@@ -0,0 +1 @@ | |||
require gdb-fsl.inc | |||