aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/mips/tm-mipsv4.h
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/mips/tm-mipsv4.h
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/mips/tm-mipsv4.h')
-rw-r--r--gdb/config/mips/tm-mipsv4.h3
1 files changed, 3 insertions, 0 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)