summaryrefslogtreecommitdiffstats
path: root/meta/packages/gdb/gdb/kill_arm_map_symbols.patch
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2010-06-28 08:51:08 -0700
committerSaul Wold <Saul.Wold@intel.com>2010-07-08 22:05:20 -0700
commit936a73eae5fd5732c9dc5ae2a47d6196f7f69c0a (patch)
treec758f2ec55ab78fb71d962d85d82335b47f46c04 /meta/packages/gdb/gdb/kill_arm_map_symbols.patch
parentda46e7f70546c14ddd8efc0f64371b637092293d (diff)
downloadpoky-936a73eae5fd5732c9dc5ae2a47d6196f7f69c0a.tar.gz
gdb family: upgrade from 6.8 to 7.1
upgraded gdb, gdb-cross & gdb-cross-canadian recipes. ignore_whitespace_changes.patch : this patch is not needed anymore because the newer version fixed the issue differently. rebased other patches to the newer version of the source code. Added the --with-libelf line in the gdb-common.inc to fix a configure faulre. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Diffstat (limited to 'meta/packages/gdb/gdb/kill_arm_map_symbols.patch')
-rw-r--r--meta/packages/gdb/gdb/kill_arm_map_symbols.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/packages/gdb/gdb/kill_arm_map_symbols.patch b/meta/packages/gdb/gdb/kill_arm_map_symbols.patch
new file mode 100644
index 0000000000..177142192d
--- /dev/null
+++ b/meta/packages/gdb/gdb/kill_arm_map_symbols.patch
@@ -0,0 +1,24 @@
1Index: gdb-6.3/gdb/arm-tdep.c
2===================================================================
3--- gdb-6.3.orig/gdb/arm-tdep.c 2004-08-03 02:02:20.000000000 +0000
4+++ gdb-6.3/gdb/arm-tdep.c 2005-11-09 15:13:29.000000000 +0000
5@@ -2491,6 +2491,19 @@
6 static void
7 arm_elf_make_msymbol_special(asymbol *sym, struct minimal_symbol *msym)
8 {
9+
10+ /* FIXME: We want gdb to ignore the ARM ELF mapping symbols when
11+ displaying disassembly so we use this horrible hack here to
12+ artifically set their address to the highest possible value.
13+ This is wrong of course, and it prevents the symbols from being
14+ used for their intended purpose - to distinguish between ARM
15+ and THUMB code. So we ought to find a better way to do this. */
16+ if (bfd_asymbol_name (sym)
17+ && bfd_asymbol_name (sym)[0] == '$'
18+ && bfd_asymbol_name (sym)[1] != 0
19+ && bfd_asymbol_name (sym)[2] == 0)
20+ SYMBOL_VALUE_ADDRESS(msym) = (CORE_ADDR) 0x7ffffffc;
21+
22 /* Thumb symbols are of type STT_LOPROC, (synonymous with
23 STT_ARM_TFUNC). */
24 if (ELF_ST_TYPE (((elf_symbol_type *)sym)->internal_elf_sym.st_info)