aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1994-12-17 10:46:32 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1994-12-17 10:46:32 +0000
commit84bdfea6aa3c038b4e38f8615781ff3153bee2e3 (patch)
tree1eb9e1ea1d99fcb8bf0fff414ba9b9579abb0ba1 /gdb/config
parent091f3a62a880ead07711231dd29eac1523eba1a2 (diff)
downloadgdb-84bdfea6aa3c038b4e38f8615781ff3153bee2e3.zip
gdb-84bdfea6aa3c038b4e38f8615781ff3153bee2e3.tar.gz
gdb-84bdfea6aa3c038b4e38f8615781ff3153bee2e3.tar.bz2
* c-typeprint.c (c_type_print_base): Use `show' of -1 to print
the return type of methods to avoid infinite loops with anonymous types. * valops.c (search_struct_field): Handle anonymous unions. * sparc-tdep.c (sunos4_skip_trampoline_code): New function to correctly handle steps into -g compiled PIC objects in the main executable. * config/sparc/tm-sun4os4.h (SKIP_TRAMPOLINE_CODE): Redefine to use sunos4_skip_trampoline_code. * dwarfread.c (DWARF_REG_TO_REGNUM): Provide a default mapping from DWARF to GDB register numbering. * dwarfread.c (locval): Use DWARF_REG_TO_REGNUM to map the register value. * config/mips/tm-mipsv4.h (DWARF_REG_TO_REGNUM): Define.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/mips/tm-mipsv4.h3
-rw-r--r--gdb/config/sparc/tm-sun4os4.h9
2 files changed, 11 insertions, 1 deletions
diff --git a/gdb/config/mips/tm-mipsv4.h b/gdb/config/mips/tm-mipsv4.h
index 5fc4e4c..03d39859 100644
--- a/gdb/config/mips/tm-mipsv4.h
+++ b/gdb/config/mips/tm-mipsv4.h
@@ -39,3 +39,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Use the alternate method of determining valid frame chains. */
#define FRAME_CHAIN_VALID_ALTERNATE
+
+/* Convert a DWARF register number to a gdb REGNUM. */
+#define DWARF_REG_TO_REGNUM(num) ((num) < 32 ? (num) : (num)+FP0_REGNUM-32)
diff --git a/gdb/config/sparc/tm-sun4os4.h b/gdb/config/sparc/tm-sun4os4.h
index 613ed77..46c20a8 100644
--- a/gdb/config/sparc/tm-sun4os4.h
+++ b/gdb/config/sparc/tm-sun4os4.h
@@ -1,5 +1,5 @@
/* Macro definitions for GDB for a Sun 4 running sunos 4.
- Copyright 1989, 1992 Free Software Foundation, Inc.
+ Copyright 1989, 1992, 1994 Free Software Foundation, Inc.
This file is part of GDB.
@@ -20,6 +20,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "sparc/tm-sparc.h"
#include "tm-sunos.h"
+/* Redefine SKIP_TRAMPOLINE_CODE to handle PIC compiled modules
+ in main executables. */
+
+#undef SKIP_TRAMPOLINE_CODE
+#define SKIP_TRAMPOLINE_CODE(pc) sunos4_skip_trampoline_code (pc)
+extern CORE_ADDR sunos4_skip_trampoline_code PARAMS ((CORE_ADDR));
+
/* Offsets into jmp_buf. Not defined by Sun, but at least documented in a
comment in <machine/setjmp.h>! */