summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2011-08-05 22:35:31 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-08 13:41:20 +0100
commit7ae7e7e09a0ecb76413754c70e12fda14d64a0be (patch)
treefd6fc8546949cda5b7cca2ec2e7eaed38a3f9a32 /meta/recipes-devtools/gdb/gdb
parent4a5336d403bb0b8dfe2e5f863288a7d3489132c2 (diff)
downloadpoky-7ae7e7e09a0ecb76413754c70e12fda14d64a0be.tar.gz
gdb: Update to 7.3
This has one upstream patch removed and a couple rebased (From OE-Core rev: e1e9ee24e82e0ad45cf18387e131d2365c8e77b4) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb')
-rw-r--r--meta/recipes-devtools/gdb/gdb/fix_for_build_error_internal_error_call.patch20
-rw-r--r--meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff16
-rw-r--r--meta/recipes-devtools/gdb/gdb/kill_arm_map_symbols.patch36
3 files changed, 27 insertions, 45 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/fix_for_build_error_internal_error_call.patch b/meta/recipes-devtools/gdb/gdb/fix_for_build_error_internal_error_call.patch
deleted file mode 100644
index afb1783c50..0000000000
--- a/meta/recipes-devtools/gdb/gdb/fix_for_build_error_internal_error_call.patch
+++ /dev/null
@@ -1,20 +0,0 @@
1Upstream-Status: Pending
2
3The prototype of function internall_error has changed. And one place in the code was not synced up with the new prototype, causing build error. This patche fixes that.
4
5Nitin A Kamble <nitin.a.kamble@intel.com>
62010/11/12
7
8Index: gdb-7.2/gdb/gdbserver/linux-i386-ipa.c
9===================================================================
10--- gdb-7.2.orig/gdb/gdbserver/linux-i386-ipa.c
11+++ gdb-7.2/gdb/gdbserver/linux-i386-ipa.c
12@@ -178,7 +178,7 @@ supply_static_tracepoint_registers (stru
13 }
14 break;
15 default:
16- internal_error ("unhandled register size: %d",
17+ internal_error (__FILE__, __LINE__, "unhandled register size: %d",
18 i386_st_collect_regmap[i].size);
19 }
20 }
diff --git a/meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff b/meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff
index 0475a42776..8256f17c30 100644
--- a/meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff
+++ b/meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff
@@ -2,16 +2,18 @@ Upstream-Status: Pending
2 2
3Index: gdb/gdbserver/Makefile.in 3Index: gdb/gdbserver/Makefile.in
4=================================================================== 4===================================================================
5--- gdb/gdbserver/Makefile.in.orig 5--- gdb/gdbserver/Makefile.in.orig 2011-03-09 23:32:02.000000000 -0800
6+++ gdb/gdbserver/Makefile.in 6+++ gdb/gdbserver/Makefile.in 2011-08-05 21:16:43.592202579 -0700
7@@ -89,8 +89,8 @@ WARN_CFLAGS = -Wall 7@@ -94,10 +94,10 @@
8 CFLAGS = @CFLAGS@ 8 CFLAGS = @CFLAGS@
9 9
10 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. 10 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
11-INTERNAL_CFLAGS = $(WARN_CFLAGS) ${CFLAGS} ${GLOBAL_CFLAGS} \ 11-INTERNAL_CFLAGS_BASE = ${CFLAGS} ${GLOBAL_CFLAGS} \
12- ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} 12+INTERNAL_CFLAGS_BASE = ${GLOBAL_CFLAGS} \
13+INTERNAL_CFLAGS = $(WARN_CFLAGS) ${GLOBAL_CFLAGS} \ 13 ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS}
14+ ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CFLAGS} 14 INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
15-INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS)
16+INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) ${CFLAGS}
15 17
16 # LDFLAGS is specifically reserved for setting from the command line 18 # LDFLAGS is specifically reserved for setting from the command line
17 # when running make. 19 # when running make.
diff --git a/meta/recipes-devtools/gdb/gdb/kill_arm_map_symbols.patch b/meta/recipes-devtools/gdb/gdb/kill_arm_map_symbols.patch
index c1756f7e24..9fc45b9f2a 100644
--- a/meta/recipes-devtools/gdb/gdb/kill_arm_map_symbols.patch
+++ b/meta/recipes-devtools/gdb/gdb/kill_arm_map_symbols.patch
@@ -1,26 +1,26 @@
1Upstream-Status: Inappropriate [embedded specific] 1Upstream-Status: Inappropriate [embedded specific]
2 2
3Index: gdb-6.3/gdb/arm-tdep.c 3Index: gdb-7.3/gdb/arm-tdep.c
4=================================================================== 4===================================================================
5--- gdb-6.3.orig/gdb/arm-tdep.c 2004-08-03 02:02:20.000000000 +0000 5--- gdb-7.3.orig/gdb/arm-tdep.c 2011-05-17 14:27:01.000000000 -0700
6+++ gdb-6.3/gdb/arm-tdep.c 2005-11-09 15:13:29.000000000 +0000 6+++ gdb-7.3/gdb/arm-tdep.c 2011-08-05 22:29:58.784201850 -0700
7@@ -2491,6 +2491,19 @@ 7@@ -7806,6 +7806,19 @@
8 static void 8 static void
9 arm_elf_make_msymbol_special(asymbol *sym, struct minimal_symbol *msym) 9 arm_elf_make_msymbol_special(asymbol *sym, struct minimal_symbol *msym)
10 { 10 {
11+ 11+
12+ /* FIXME: We want gdb to ignore the ARM ELF mapping symbols when 12+ /* FIXME: We want gdb to ignore the ARM ELF mapping symbols when
13+ displaying disassembly so we use this horrible hack here to 13+ displaying disassembly so we use this horrible hack here to
14+ artifically set their address to the highest possible value. 14+ artifically set their address to the highest possible value.
15+ This is wrong of course, and it prevents the symbols from being 15+ This is wrong of course, and it prevents the symbols from being
16+ used for their intended purpose - to distinguish between ARM 16+ used for their intended purpose - to distinguish between ARM
17+ and THUMB code. So we ought to find a better way to do this. */ 17+ and THUMB code. So we ought to find a better way to do this. */
18+ if (bfd_asymbol_name (sym) 18+ if (bfd_asymbol_name (sym)
19+ && bfd_asymbol_name (sym)[0] == '$' 19+ && bfd_asymbol_name (sym)[0] == '$'
20+ && bfd_asymbol_name (sym)[1] != 0 20+ && bfd_asymbol_name (sym)[1] != 0
21+ && bfd_asymbol_name (sym)[2] == 0) 21+ && bfd_asymbol_name (sym)[2] == 0)
22+ SYMBOL_VALUE_ADDRESS(msym) = (CORE_ADDR) 0x7ffffffc; 22+ SYMBOL_VALUE_ADDRESS(msym) = (CORE_ADDR) 0x7ffffffc;
23+ 23+
24 /* Thumb symbols are of type STT_LOPROC, (synonymous with 24 if (ARM_SYM_BRANCH_TYPE (&((elf_symbol_type *)sym)->internal_elf_sym)
25 STT_ARM_TFUNC). */ 25 == ST_BRANCH_TO_THUMB)
26 if (ELF_ST_TYPE (((elf_symbol_type *)sym)->internal_elf_sym.st_info) 26 MSYMBOL_SET_SPECIAL (msym);