aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/m68k/tm-m68kv4.h
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1995-07-20 05:53:28 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1995-07-20 05:53:28 +0000
commit5488b3b7a638c13f2d9e00b94663c2bb66f6b049 (patch)
treebb8a23319ef83d6702bd0781681b5f5bc7016eda /gdb/config/m68k/tm-m68kv4.h
parentbbcc95bdb1c2eb0c07778e1a1195743537d44224 (diff)
downloadgdb-5488b3b7a638c13f2d9e00b94663c2bb66f6b049.zip
gdb-5488b3b7a638c13f2d9e00b94663c2bb66f6b049.tar.gz
gdb-5488b3b7a638c13f2d9e00b94663c2bb66f6b049.tar.bz2
* config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define to
correctly map floating point registers numbers.
Diffstat (limited to 'gdb/config/m68k/tm-m68kv4.h')
-rw-r--r--gdb/config/m68k/tm-m68kv4.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/config/m68k/tm-m68kv4.h b/gdb/config/m68k/tm-m68kv4.h
index c550fd9..3895cdd 100644
--- a/gdb/config/m68k/tm-m68kv4.h
+++ b/gdb/config/m68k/tm-m68kv4.h
@@ -1,6 +1,6 @@
/* Target definitions for GDB on a Motorola 680x0 running SVR4.
(Commodore Amiga with amix or Atari TT with ASV)
- Copyright (C) 1991, Free Software Foundation, Inc.
+ Copyright (C) 1991, 1995 Free Software Foundation, Inc.
Written by Fred Fish at Cygnus Support (fnf@cygint)
This file is part of GDB.
@@ -64,3 +64,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
This routine returns true on success */
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
+
+/* Convert a DWARF register number to a gdb REGNUM. */
+#define DWARF_REG_TO_REGNUM(num) ((num) < 16 ? (num) : (num)+FP0_REGNUM-16)