From 5488b3b7a638c13f2d9e00b94663c2bb66f6b049 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Thu, 20 Jul 1995 05:53:28 +0000 Subject: [PATCH] * config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define to correctly map floating point registers numbers. --- gdb/config/m68k/tm-m68kv4.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/config/m68k/tm-m68kv4.h b/gdb/config/m68k/tm-m68kv4.h index c550fd9f186..3895cddc804 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) -- 2.30.2