+Tue Jun 6 15:07:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * remote-mips.c (mips_open): Select the default monitor prompt
+ based on the target ISA.
+
+ * config/mips/tm-vr4100.h (TARGET_MONITOR_PROMPT),
+ config/mips/tm-vr4300el.h (TARGET_MONITOR_PROMPT),
+ config/mips/tm-vr4300.h (TARGET_MONITOR_PROMPT),
+ config/mips/tm-vr4xxx.h (TARGET_MONITOR_PROMPT),
+ config/mips/tm-vr4xxxel.h (TARGET_MONITOR_PROMPT),
+ config/mips/tm-vr5000el.h (TARGET_MONITOR_PROMPT),
+ config/mips/tm-vr5000.h (TARGET_MONITOR_PROMPT),
+ config/mips/tm-mips.h (TARGET_MONITOR_PROMPT): Delete macro.
+
2000-06-05 Daniel Berlin <dan@cgsoftware.com>
* c-exp.y (yylex): template handling fixes.
#define MIPS_EABI 0
#endif
-#if !defined (TARGET_MONITOR_PROMPT)
-#define TARGET_MONITOR_PROMPT "<IDT>"
-#endif
-
/* PC should be masked to remove possible MIPS16 flag */
#if !defined (GDB_TARGET_MASK_DISAS_PC)
#define GDB_TARGET_MASK_DISAS_PC(addr) UNMAKE_MIPS16_ADDR(addr)
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
This file is part of GDB.
#define TARGET_BYTE_ORDER_SELECTABLE_P 1
#define MIPS_EABI 1
#define MIPS_DEFAULT_FPU_TYPE MIPS_FPU_NONE
-#define TARGET_MONITOR_PROMPT "<RISQ> "
#define TARGET_PTR_BIT 64
#include "mips/tm-bigmips64.h"
-/* Copyright (C) 1993, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1996, 2000 Free Software Foundation, Inc.
This file is part of GDB.
Boston, MA 02111-1307, USA. */
#define TARGET_BYTE_ORDER_SELECTABLE_P 1
-#define TARGET_MONITOR_PROMPT "<RISQ> "
#include "mips/tm-bigmips64.h"
-/* Copyright (C) 1993, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1996, 2000 Free Software Foundation, Inc.
This file is part of GDB.
Boston, MA 02111-1307, USA. */
#define TARGET_BYTE_ORDER_SELECTABLE_P 1
-#define TARGET_MONITOR_PROMPT "<RISQ> "
#include "mips/tm-mips64.h"
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
This file is part of GDB.
#define GDB_MULTI_ARCH 1
#define MIPS_DEFAULT_FPU_TYPE MIPS_FPU_DOUBLE
#define TARGET_BYTE_ORDER_SELECTABLE_P 1
-#define TARGET_MONITOR_PROMPT "<RISQ> "
#include "mips/tm-bigmips64.h"
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
This file is part of GDB.
#define GDB_MULTI_ARCH 1
#define MIPS_DEFAULT_FPU_TYPE MIPS_FPU_DOUBLE
#define TARGET_BYTE_ORDER_SELECTABLE_P 1
-#define TARGET_MONITOR_PROMPT "<RISQ> "
#include "mips/tm-mips64.h"
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 2000 Free Software Foundation, Inc.
This file is part of GDB.
#define GDB_MULTI_ARCH 1
#define TARGET_BYTE_ORDER_SELECTABLE_P 1
-#define TARGET_MONITOR_PROMPT "<RISQ> "
#define MIPS_EABI 1
#include "mips/tm-bigmips64.h"
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 2000 Free Software Foundation, Inc.
This file is part of GDB.
#define GDB_MULTI_ARCH 1
#define TARGET_BYTE_ORDER_SELECTABLE_P 1
-#define TARGET_MONITOR_PROMPT "<RISQ> "
#define MIPS_EABI 1
#include "mips/tm-mips64.h"
/* Remote debugging interface for MIPS remote debugging protocol.
- Copyright 1993-1995, 2000 Free Software Foundation, Inc.
+ Copyright 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
Contributed by Cygnus Support. Written by Ian Lance Taylor
<ian@cygnus.com>.
char *name;
int from_tty;
{
- common_open (&mips_ops, name, from_tty, MON_IDT, TARGET_MONITOR_PROMPT);
+ const char *monitor_prompt = NULL;
+ if (TARGET_ARCHITECTURE != NULL
+ && TARGET_ARCHITECTURE->arch == bfd_arch_mips)
+ {
+ switch (TARGET_ARCHITECTURE->mach)
+ {
+ case bfd_mach_mips4100:
+ case bfd_mach_mips4300:
+ case bfd_mach_mips4600:
+ case bfd_mach_mips4650:
+ case bfd_mach_mips5000:
+ monitor_prompt = "<RISQ> ";
+ break;
+ }
+ }
+ if (monitor_prompt == NULL)
+ monitor_prompt = "<IDT>";
+ common_open (&mips_ops, name, from_tty, MON_IDT, monitor_prompt);
}
static void