Subject: [Fwd: [patch] Almost zap ns32k]
To: None <port-pc532@netbsd.org>
From: Andrew Cagney <cagney@mac.com>
List: port-pc532
Date: 12/01/2001 17:01:08
This is a multi-part message in MIME format.
--------------060508050807060504070407
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Just FYI,

ns32k support in GDB is currently hanging on by the skin of its teeth :-(

Andrew (resisting any sense of nostalgia towards this Instruction Set 
Architecture ;-)

--------------060508050807060504070407
Content-Type: message/rfc822;
 name="[patch] Almost zap ns32k"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="[patch] Almost zap ns32k"

From gdb-patches-owner@sources.redhat.com  Sat Dec  1 16:43:28 2001
	by localhost.cygnus.com (Postfix) with ESMTP id C0B8D3DF1
	for <ac131313@localhost>; Sat,  1 Dec 2001 16:43:27 -0500 (EST)
	by localhost with IMAP (fetchmail-5.8.8)
	for ac131313@localhost (single-drop); Sat, 01 Dec 2001 16:43:27 -0500 (EST)
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with SMTP id NAA23094
	for <ac131313@cygnus.com>; Sat, 1 Dec 2001 13:41:55 -0800 (PST)
  by hostedprojects.ges.redhat.com with SMTP; 1 Dec 2001 21:41:51 -0000
	by localhost.cygnus.com (Postfix) with ESMTP id 6073F3DF1
	for <gdb-patches@sources.redhat.com>; Sat,  1 Dec 2001 16:41:51 -0500 (EST)
Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:gdb-patches-unsubscribe-ac131313=cygnus.com@sources.redhat.com>
List-Subscribe: <mailto:gdb-patches-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/gdb-patches/>
List-Post: <mailto:gdb-patches@sources.redhat.com>
List-Help: <mailto:gdb-patches-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: gdb-patches-owner@sources.redhat.com
Message-ID: <3C094E9E.2030003@cygnus.com>
Date: Sat, 01 Dec 2001 16:41:50 -0500
From: Andrew Cagney <ac131313@cygnus.com>
User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.3) Gecko/20011020
MIME-Version: 1.0
To: gdb-patches@sources.redhat.com
Subject: [patch] Almost zap ns32k
Content-Type: multipart/mixed;
 boundary="------------060502070809000308090003"

This is a multi-part message in MIME format.
--------------060502070809000308090003
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Only ns32k-netbsd is left.  That target will need multi-arching to 
survive :-/

	Andrew

--------------060502070809000308090003
Content-Type: text/plain;
 name="diffs"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="diffs"

2001-12-01  Andrew Cagney  <ac131313@redhat.com>

	* NEWS: Note that ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*
	and ns32k-utek-* were deleted.
	* Makefile.in (ultra3-nat.o, ultra3-xdep.o): Delete.
	(umax-xdep.o, ns32km3-nat.o): Delete.
	* configure.tgt: Delete ns32k-*-mach3*, ns32k-utek-sysv* and
	ns32k-utek-* targets.
	* configure.host: Delete ns32k-*-mach3*, ns32k-umax-* and
	ns32k-utek-sysv* hosts.
	* ultra3-nat.c: Delete file.
	* ultra3-xdep.c: Delete file.
	* umax-xdep.o: Delete file.
	* ns32km3-nat: Delete file.
	* config/ns32k/merlin.mh: Delete file.
	* config/ns32k/merlin.mt: Delete file.
	* config/ns32k/nm-umax.h: Delete file.
	* config/ns32k/ns32km3.mh: Delete file.
	* config/ns32k/ns32km3.mt: Delete file.
	* config/ns32k/tm-merlin.h: Delete file.
	* config/ns32k/tm-ns32km3.h: Delete file.
	* config/ns32k/umax.mh: Delete file.
	* config/ns32k/umax.mt: Delete file.
	* config/ns32k/xm-merlin.h: Delete file.
	* config/ns32k/xm-ns32km3.h: Delete file.
	* config/ns32k/xm-umax.h: Delete file.
	
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.133
diff -p -r1.133 Makefile.in
*** Makefile.in	2001/12/01 19:34:37	1.133
--- Makefile.in	2001/12/01 21:37:55
*************** nlmread.o: nlmread.c $(bfd_h) $(buildsym
*** 1769,1776 ****
  	$(gdb_stabs_h) $(objfiles_h) $(symfile_h) $(symtab_h) $(stabsread_h) \
  	$(gdb_string_h)
  
- # OBSOLETE ns32km3-nat.o: ns32km3-nat.c $(defs_h) $(inferior_h) $(regcache_h)
- 
  ttyflush.o: nindy-share/ttyflush.c
  	$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/nindy-share/ttyflush.c
  
--- 1769,1774 ----
*************** top.o: top.c $(top_h) $(bfd_h) $(getopt_
*** 2107,2118 ****
  typeprint.o: typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
  	$(gdbcore_h) $(gdbtypes_h) $(language_h) $(symtab_h) $(target_h) \
  	$(value_h) $(gdb_string_h) $(cp_abi_h)
- 
- # OBSOLETE ultra3-nat.o: ultra3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) $(regcache_h)
- 
- # OBSOLETE ultra3-xdep.o: ultra3-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
- 
- # OBSOLETE umax-xdep.o: umax-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h) $(regcache_h)
  
  utils.o: utils.c $(bfd_h) $(defs_h) $(expression_h) $(gdbcmd_h) \
  	$(language_h) $(target_h) $(terminal_h) $(readline_headers) \
--- 2105,2110 ----
Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.42
diff -p -r1.42 NEWS
*** NEWS	2001/12/01 21:11:41	1.42
--- NEWS	2001/12/01 21:38:00
*************** PowerPC Solaris					powerpcle-*-solaris*
*** 15,20 ****
--- 15,22 ----
  PowerPC Windows NT				powerpcle-*-cygwin32
  PowerPC Netware					powerpc-*-netware*
  Harris/CXUX m88k				m88*-harris-cxux*
+ Most ns32k hosts and targets			ns32k-*-mach3* ns32k-umax-*
+ 						ns32k-utek-sysv* ns32k-utek-*
  
  * Changes to command line processing
  
Index: configure.host
===================================================================
RCS file: /cvs/src/src/gdb/configure.host,v
retrieving revision 1.26
diff -p -r1.26 configure.host
*** configure.host	2001/12/01 21:11:41	1.26
--- configure.host	2001/12/01 21:38:00
*************** mips-*-riscos*)		gdb_host=riscos ;;
*** 127,136 ****
  
  none-*-*)		gdb_host=none ;;
  
- # OBSOLETE ns32k-*-mach3*)		gdb_host=ns32km3 ;;
  ns32k-*-netbsd*)	gdb_host=nbsd ;;
- # OBSOLETE ns32k-umax-*)		gdb_host=umax ;;
- # OBSOLETE ns32k-utek-sysv*)	gdb_host=merlin ;;
  
  powerpc-*-aix*)		gdb_host=aix ;;
  powerpc-*-linux*)	gdb_host=linux ;;
--- 127,133 ----
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.40
diff -p -r1.40 configure.tgt
*** configure.tgt	2001/12/01 21:11:41	1.40
--- configure.tgt	2001/12/01 21:38:00
*************** mn10300-*-*)		gdb_target=mn10300 ;;
*** 226,236 ****
  
  none-*-*)		gdb_target=none ;;
  
- # OBSOLETE ns32k-*-mach3*)		gdb_target=ns32km3 ;;
  ns32k-*-netbsd*)	gdb_target=nbsd
  		configdirs="${configdirs} gdbserver" ;;
- # OBSOLETE ns32k-utek-sysv*)	gdb_target=merlin ;;
- # OBSOLETE ns32k-utek-*)		gdb_target=umax ;;
  
  powerpc-*-macos*)	gdb_target=macos ;;
  powerpc-*-netbsd*)	gdb_target=nbsd
--- 226,233 ----
Index: ns32k-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ns32k-tdep.c,v
retrieving revision 1.6
diff -p -r1.6 ns32k-tdep.c
*** ns32k-tdep.c	2001/04/02 20:57:26	1.6
--- ns32k-tdep.c	2001/12/01 21:38:01
*************** _initialize_ns32k_tdep (void)
*** 34,56 ****
  /* Advance PC across any function entry prologue instructions
     to reach some "real" code.  */
  
- /* OBSOLETE CORE_ADDR */
- /* OBSOLETE merlin_skip_prologue (CORE_ADDR pc) */
- /* OBSOLETE { */
- /* OBSOLETE   register int op = read_memory_integer (pc, 1); */
- /* OBSOLETE   if (op == 0x82) */
- /* OBSOLETE     { */
- /* OBSOLETE       op = read_memory_integer (pc + 2, 1); */
- /* OBSOLETE       if ((op & 0x80) == 0) */
- /* OBSOLETE 	pc += 3; */
- /* OBSOLETE       else if ((op & 0xc0) == 0x80) */
- /* OBSOLETE 	pc += 4; */
- /* OBSOLETE       else */
- /* OBSOLETE 	pc += 6; */
- /* OBSOLETE     } */
- /* OBSOLETE   return pc; */
- /* OBSOLETE } */
- 
  CORE_ADDR
  umax_skip_prologue (CORE_ADDR pc)
  {
--- 34,39 ----
*************** umax_skip_prologue (CORE_ADDR pc)
*** 67,109 ****
      }
    return pc;
  }
- 
- /* Return number of args passed to a frame.
-    Can return -1, meaning no way to tell.  */
- 
- /* OBSOLETE int */
- /* OBSOLETE merlin_frame_num_args (struct frame_info *fi) */
- /* OBSOLETE { */
- /* OBSOLETE   int numargs; */
- /* OBSOLETE   CORE_ADDR pc; */
- /* OBSOLETE   int insn; */
- /* OBSOLETE   int addr_mode; */
- /* OBSOLETE   int width; */
- /* OBSOLETE  */
- /* OBSOLETE   pc = FRAME_SAVED_PC (fi); */
- /* OBSOLETE   insn = read_memory_integer (pc, 2); */
- /* OBSOLETE   addr_mode = (insn >> 11) & 0x1f; */
- /* OBSOLETE   insn = insn & 0x7ff; */
- /* OBSOLETE   if ((insn & 0x7fc) == 0x57c */
- /* OBSOLETE       && addr_mode == 0x14)	 *//* immediate */
- /* OBSOLETE     { */
- /* OBSOLETE       if (insn == 0x57c)	 *//* adjspb */
- /* OBSOLETE 	width = 1; */
- /* OBSOLETE       else if (insn == 0x57d)	 *//* adjspw */
- /* OBSOLETE 	width = 2; */
- /* OBSOLETE       else if (insn == 0x57f)	 *//* adjspd */
- /* OBSOLETE 	width = 4; */
- /* OBSOLETE       else */
- /* OBSOLETE 	internal_error (__FILE__, __LINE__, "bad else"); */
- /* OBSOLETE       numargs = read_memory_integer (pc + 2, width); */
- /* OBSOLETE       if (width > 1) */
- /* OBSOLETE 	flip_bytes (&numargs, width); */
- /* OBSOLETE       numargs = -sign_extend (numargs, width * 8) / 4; */
- /* OBSOLETE     } */
- /* OBSOLETE   else */
- /* OBSOLETE     numargs = -1; */
- /* OBSOLETE   return numargs; */
- /* OBSOLETE } */
  
  /* Return number of args passed to a frame.
     Can return -1, meaning no way to tell.
--- 50,55 ----

--------------060502070809000308090003--



--------------060508050807060504070407--