From 45d072e7e7de2edfaf72f22f06e57e3ee171e552 Mon Sep 17 00:00:00 2001 From: Matthew McClintock Date: Sat, 26 May 2012 00:33:10 +0000 Subject: gdb: add patch to fix gdb issue Fix decode of instructions on e500mc Signed-off-by: Matthew McClintock --- .../gdb/files/gdb-7.4.1-e500mc-disassemble-fix.patch | 13 +++++++++++++ recipes-devtools/gdb/gdb-cross-canadian_7.3a.bbappend | 1 + recipes-devtools/gdb/gdb-cross_7.3a.bbappend | 1 + recipes-devtools/gdb/gdb-fsl.inc | 5 +++++ recipes-devtools/gdb/gdb_7.3a.bbappend | 1 + 5 files changed, 21 insertions(+) create mode 100644 recipes-devtools/gdb/files/gdb-7.4.1-e500mc-disassemble-fix.patch create mode 100644 recipes-devtools/gdb/gdb-cross-canadian_7.3a.bbappend create mode 100644 recipes-devtools/gdb/gdb-cross_7.3a.bbappend create mode 100644 recipes-devtools/gdb/gdb-fsl.inc create mode 100644 recipes-devtools/gdb/gdb_7.3a.bbappend 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 @@ +Index: gdb-7.3/gdb/rs6000-tdep.c +=================================================================== +--- gdb-7.3.orig/gdb/rs6000-tdep.c ++++ gdb-7.3/gdb/rs6000-tdep.c +@@ -3088,6 +3088,8 @@ gdb_print_insn_powerpc (bfd_vma memaddr, + cpu and get much more sane disassembly output. */ + if (info->mach == bfd_mach_ppc_e500) + info->disassembler_options = "e500x2"; ++ else if (info->mach == bfd_mach_ppc_e500mc) ++ info->disassembler_options = "e500mc"; + else + info->disassembler_options = "any"; + } 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 @@ +PR_append_fsl = "+${DISTRO}.0" + +SRC_URI_append_fsl = " file://gdb-7.4.1-e500mc-disassemble-fix.patch" + +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 -- cgit v1.2.3-54-g00ecf