This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] delete TARGET_MONITOR_PROMPT


FYI,

I've committed the attached.  The code in remote-mips.c can determine a
default monitor prompt at runtime using TARGET_ARCHITECTURE instead of
having it hardwired.

	Andrew
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.

Index: remote-mips.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-mips.c,v
retrieving revision 1.3
diff -p -r1.3 remote-mips.c
*** remote-mips.c	2000/05/28 01:12:29	1.3
--- remote-mips.c	2000/06/06 06:14:39
***************
*** 1,5 ****
  /* Remote debugging interface for MIPS remote debugging protocol.
!    Copyright 1993-1995, 2000 Free Software Foundation, Inc.
     Contributed by Cygnus Support.  Written by Ian Lance Taylor
     <ian@cygnus.com>.
  
--- 1,5 ----
  /* Remote debugging interface for MIPS remote debugging protocol.
!    Copyright 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
     Contributed by Cygnus Support.  Written by Ian Lance Taylor
     <ian@cygnus.com>.
  
*************** mips_open (name, from_tty)
*** 1654,1660 ****
       char *name;
       int from_tty;
  {
!   common_open (&mips_ops, name, from_tty, MON_IDT, TARGET_MONITOR_PROMPT);
  }
  
  static void
--- 1654,1677 ----
       char *name;
       int from_tty;
  {
!   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
Index: config/mips/tm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mips.h,v
retrieving revision 1.7
diff -p -r1.7 tm-mips.h
*** tm-mips.h	2000/06/04 13:46:37	1.7
--- tm-mips.h	2000/06/06 06:14:42
*************** struct value;
*** 45,54 ****
  #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)
--- 45,50 ----
Index: config/mips/tm-vr4100.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-vr4100.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 tm-vr4100.h
*** tm-vr4100.h	1999/07/07 20:15:35	1.1.1.2
--- tm-vr4100.h	2000/06/06 06:14:42
***************
*** 1,4 ****
! /* Copyright (C) 1998 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
--- 1,4 ----
! /* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
***************
*** 20,26 ****
  #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"
--- 20,25 ----
Index: config/mips/tm-vr4300.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-vr4300.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 tm-vr4300.h
*** tm-vr4300.h	1999/07/07 20:15:36	1.1.1.2
--- tm-vr4300.h	2000/06/06 06:14:42
***************
*** 1,4 ****
! /* Copyright (C) 1993, 1996 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
--- 1,4 ----
! /* Copyright (C) 1993, 1996, 2000 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
***************
*** 18,23 ****
     Boston, MA 02111-1307, USA.  */
  
  #define TARGET_BYTE_ORDER_SELECTABLE_P 1
- #define TARGET_MONITOR_PROMPT "<RISQ> "
  
  #include "mips/tm-bigmips64.h"
--- 18,22 ----
Index: config/mips/tm-vr4300el.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-vr4300el.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 tm-vr4300el.h
*** tm-vr4300el.h	1999/07/07 20:15:38	1.1.1.2
--- tm-vr4300el.h	2000/06/06 06:14:42
***************
*** 1,4 ****
! /* Copyright (C) 1993, 1996 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
--- 1,4 ----
! /* Copyright (C) 1993, 1996, 2000 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
***************
*** 18,23 ****
     Boston, MA 02111-1307, USA.  */
  
  #define TARGET_BYTE_ORDER_SELECTABLE_P 1
- #define TARGET_MONITOR_PROMPT "<RISQ> "
  
  #include "mips/tm-mips64.h"
--- 18,22 ----
Index: config/mips/tm-vr4xxx.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-vr4xxx.h,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 tm-vr4xxx.h
*** tm-vr4xxx.h	1999/12/07 03:56:11	1.1.1.1
--- tm-vr4xxx.h	2000/06/06 06:14:42
***************
*** 1,4 ****
! /* Copyright (C) 1998 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
--- 1,4 ----
! /* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
***************
*** 20,25 ****
  #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"
--- 20,24 ----
Index: config/mips/tm-vr4xxxel.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-vr4xxxel.h,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 tm-vr4xxxel.h
*** tm-vr4xxxel.h	1999/12/07 03:56:11	1.1.1.1
--- tm-vr4xxxel.h	2000/06/06 06:14:42
***************
*** 1,4 ****
! /* Copyright (C) 1998 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
--- 1,4 ----
! /* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
***************
*** 20,25 ****
  #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"
--- 20,24 ----
Index: config/mips/tm-vr5000.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-vr5000.h,v
retrieving revision 1.1.1.3
diff -p -r1.1.1.3 tm-vr5000.h
*** tm-vr5000.h	1999/12/07 03:56:11	1.1.1.3
--- tm-vr5000.h	2000/06/06 06:14:42
***************
*** 1,4 ****
! /* Copyright (C) 1996 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
--- 1,4 ----
! /* Copyright (C) 1996, 2000 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
***************
*** 19,25 ****
  
  #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"
--- 19,24 ----
Index: config/mips/tm-vr5000el.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-vr5000el.h,v
retrieving revision 1.1.1.3
diff -p -r1.1.1.3 tm-vr5000el.h
*** tm-vr5000el.h	1999/12/07 03:56:11	1.1.1.3
--- tm-vr5000el.h	2000/06/06 06:14:42
***************
*** 1,4 ****
! /* Copyright (C) 1996 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
--- 1,4 ----
! /* Copyright (C) 1996, 2000 Free Software Foundation, Inc.
  
     This file is part of GDB.
  
***************
*** 19,25 ****
  
  #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"
--- 19,24 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]