This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[rfc] obsolete the NS32k candidates
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [rfc] obsolete the NS32k candidates
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sun, 01 Apr 2001 15:41:32 -0400
Hello,
The attached is a cut down of patch to zap the ns32k hosts/targets. I
left out changes that obsoleted entire files.
ns32k-*-mach3*
ns32k-umax-*
ns32k-utek-sysv*
ns32k-utek-*
Since the ns32k-netbsd target drags in chunks of *umax* not all the
files/functions were obsoleted.
I'll check this one in tomorrow.
Andrew
2001-04-01 Andrew Cagney <ac131313@redhat.com>
Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
ns32k-utek-*.
* Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
(umax-xdep.o, ns32km3-nat.o): Obsolete.
* configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
Obsolete.
* configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
Obsolete.
* config/ns32k/merlin.mh: Obsolete.
* config/ns32k/merlin.mt: Obsolete.
* config/ns32k/xm-merlin.h: Obsolete.
* config/ns32k/tm-merlin.h: Obsolete.
* config/ns32k/nm-umax.h: Obsolete.
* config/ns32k/umax.mh: Obsolete.
* config/ns32k/umax.mt: Obsolete.
* config/ns32k/xm-umax.h: Obsolete.
* umax-xdep.c: Obsolete.
* config/ns32k/ns32km3.mh: Obsolete.
* config/ns32k/ns32km3.mt: Obsolete.
* config/ns32k/tm-ns32km3.h: Obsolete.
* config/ns32k/xm-ns32km3.h: Obsolete.
* ns32km3-nat.c: Obsolete.
* ns32k-tdep.c (merlin_skip_prologue): Obsolete.
(merlin_frame_num_args): Ditto.
* NEWS: Update.
* TODO: Update.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.75
diff -p -r1.75 Makefile.in
*** Makefile.in 2001/03/23 00:58:48 1.75
--- Makefile.in 2001/04/01 19:35:55
*************** ALLDEPFILES = 29k-share/udi/udip2soc.c 2
*** 1151,1157 ****
mips-tdep.c mipsm3-nat.c mipsv4-nat.c news-xdep.c \
nindy-share/Onindy.c nindy-share/nindy.c \
nindy-share/ttyflush.c nindy-tdep.c \
! ns32k-tdep.c ns32km3-nat.c osfsolib.c \
somread.c somsolib.c $(HPREAD_SOURCE) \
ppc-linux-nat.c ppc-linux-tdep.c \
procfs.c \
--- 1151,1157 ----
mips-tdep.c mipsm3-nat.c mipsv4-nat.c news-xdep.c \
nindy-share/Onindy.c nindy-share/nindy.c \
nindy-share/ttyflush.c nindy-tdep.c \
! ns32k-tdep.c osfsolib.c \
somread.c somsolib.c $(HPREAD_SOURCE) \
ppc-linux-nat.c ppc-linux-tdep.c \
procfs.c \
*************** ALLDEPFILES = 29k-share/udi/udip2soc.c 2
*** 1165,1171 ****
sh-tdep.c solib.c sparc-nat.c \
sparc-tdep.c sparcl-tdep.c sun3-nat.c sun386-nat.c \
symm-tdep.c symm-nat.c \
! ultra3-nat.c ultra3-xdep.c umax-xdep.c \
vax-tdep.c \
vx-share/xdr_ld.c vx-share/xdr_ptrace.c vx-share/xdr_rdb.c \
win32-nat.c \
--- 1165,1171 ----
sh-tdep.c solib.c sparc-nat.c \
sparc-tdep.c sparcl-tdep.c sun3-nat.c sun386-nat.c \
symm-tdep.c symm-nat.c \
! ultra3-nat.c ultra3-xdep.c \
vax-tdep.c \
vx-share/xdr_ld.c vx-share/xdr_ptrace.c vx-share/xdr_rdb.c \
win32-nat.c \
*************** nlmread.o: nlmread.c $(bfd_h) buildsym.h
*** 1667,1673 ****
gdb-stabs.h objfiles.h symfile.h $(symtab_h) stabsread.h \
gdb_string.h
! 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
--- 1667,1673 ----
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
*************** ultra3-nat.o: ultra3-nat.c $(defs_h) $(g
*** 1986,1992 ****
ultra3-xdep.o: ultra3-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
! 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) \
--- 1986,1992 ----
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) \
Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.15
diff -p -r1.15 NEWS
*** NEWS 2001/03/23 00:58:48 1.15
--- NEWS 2001/04/01 19:35:55
*************** x86 FreeBSD 3.x and 4.x i[3456]86*-fr
*** 16,21 ****
--- 16,23 ----
x86 FreeBSD before 2.2 i[3456]86*-freebsd{1,2.[01]}*,
Harris/CXUX m88k m88*-harris-cxux*
+ Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-*
+ ns32k-utek-sysv* ns32k-utek-*
stuff.c (Program to stuff files into a specially prepared space in kdb)
kdb-start.c (Main loop for the standalone kernel debugger)
Index: TODO
===================================================================
RCS file: /cvs/src/src/gdb/TODO,v
retrieving revision 1.72
diff -p -r1.72 TODO
*** TODO 2001/03/27 07:09:01 1.72
--- TODO 2001/04/01 19:36:01
*************** Possible selection criteria are:
*** 176,210 ****
Steps:
! o post proposals to gdb@ (DONE)
! o post announcement to gdb-announce@
! crossed with gdb@ reply-to to gdb@
(DONE)
! ns32k-*-mach3*
! ns32k-umax-*
! ns32k-utek-sysv*
! tic80-*
! m68*-isi-*
! m68*-sony-*
! m68*-rom68k-*
! m68*-*bug-*
! m68*-monitor-*
! m68*-est-*
! a29k-ultra3
! powerpcle-*-solaris*
! powerpcle-*-cygwin*
! powerpc-*-netware*
! w65-*-*
! i[3456]86-*-sunos*
! o clobber the files:
! configure.{in,host,tgt}
! Makefile.in
*-tdep.c *-nat.c *-xdep.c
- configure/*/*
o update NEWS
--- 176,221 ----
Steps:
! o Identify TUPPLE : CPU / HOST / TARGET
! combinations.
! TUPPLE CPU HOST TARGET ZAPPED
! ------ --- ---- ------ ------
! ns32k-*-mach3* ns32k ns32km3 ns32km3 yes
! ns32k-umax-* ns32k umax - yes
! ns32k-utek-sysv* ns32k merlin merlin yes
! ns32k-utek-* ns32k - umax yes
! tic80-* tic80 - tic80
! m68*-isi-* m68k isi isi
! m68*-sony-* m68k news news
! m68030-sony-* m68k news1000 -
! m68*-rom68k-* m68k - (monitor)
! m68*-*bug-* m68k - (monitor)
! m68*-monitor-* m68k - (monitor)
! m68*-est-* m68k - (monitor)
! a29k-*-* a29k ultra3 -
! a29k-*-sym1* a29k - ultra3
! powerpcle-*-solaris* powerpc solaris solaris
! powerpcle-*-cygwin* powerpc cygwin cygwin
! powerpc-*-netware* powerpc - ppc-nw
! w65-*-* w65 - w65
! i[3456]86-*-sunos* i386 sun386 sun386
!
(DONE)
! o post proposals to gdb@
! (DONE)
! o post revised proposals to gdb-announce@
! crossed with gdb@ reply-to to gdb@
! (DONE)
! o clobber the tupple and files:
! configure.host
! configure.tgt
! config/CPU/*HOST*
! config/CPU/*TARGET*
*-tdep.c *-nat.c *-xdep.c
o update NEWS
Index: configure.host
===================================================================
RCS file: /cvs/src/src/gdb/configure.host,v
retrieving revision 1.14
diff -p -r1.14 configure.host
*** configure.host 2001/03/09 03:56:03 1.14
--- configure.host 2001/04/01 19:36:01
*************** mips-*-riscos*) gdb_host=riscos ;;
*** 125,134 ****
none-*-*) gdb_host=none ;;
! ns32k-*-mach3*) gdb_host=ns32km3 ;;
ns32k-*-netbsd*) gdb_host=nbsd ;;
! ns32k-umax-*) gdb_host=umax ;;
! ns32k-utek-sysv*) gdb_host=merlin ;;
powerpc-*-aix*) gdb_host=aix ;;
powerpcle-*-cygwin*) gdb_host=cygwin ;;
--- 125,134 ----
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 ;;
powerpcle-*-cygwin*) gdb_host=cygwin ;;
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.21
diff -p -r1.21 configure.tgt
*** configure.tgt 2001/03/09 03:56:03 1.21
--- configure.tgt 2001/04/01 19:36:01
*************** mn10300-*-*) gdb_target=mn10300 ;;
*** 221,231 ****
none-*-*) gdb_target=none ;;
! ns32k-*-mach3*) gdb_target=ns32km3 ;;
ns32k-*-netbsd*) gdb_target=nbsd
configdirs="${configdirs} gdbserver" ;;
! ns32k-utek-sysv*) gdb_target=merlin ;;
! ns32k-utek-*) gdb_target=umax ;;
powerpc-*-macos*) gdb_target=macos ;;
powerpc-*-netbsd*) gdb_target=nbsd
--- 221,231 ----
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
Index: ns32k-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ns32k-tdep.c,v
retrieving revision 1.5
diff -p -r1.5 ns32k-tdep.c
*** ns32k-tdep.c 2001/03/28 21:26:07 1.5
--- ns32k-tdep.c 2001/04/01 19:36:02
*************** _initialize_ns32k_tdep (void)
*** 34,55 ****
/* Advance PC across any function entry prologue instructions
to reach some "real" code. */
! CORE_ADDR
! merlin_skip_prologue (CORE_ADDR pc)
! {
! register int op = read_memory_integer (pc, 1);
! if (op == 0x82)
! {
! op = read_memory_integer (pc + 2, 1);
! if ((op & 0x80) == 0)
! pc += 3;
! else if ((op & 0xc0) == 0x80)
! pc += 4;
! else
! pc += 6;
! }
! return pc;
! }
CORE_ADDR
umax_skip_prologue (CORE_ADDR pc)
--- 34,55 ----
/* 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)
*************** umax_skip_prologue (CORE_ADDR pc)
*** 71,116 ****
/* Return number of args passed to a frame.
Can return -1, meaning no way to tell. */
! int
! merlin_frame_num_args (struct frame_info *fi)
! {
! int numargs;
! CORE_ADDR pc;
! int insn;
! int addr_mode;
! int width;
!
! pc = FRAME_SAVED_PC (fi);
! insn = read_memory_integer (pc, 2);
! addr_mode = (insn >> 11) & 0x1f;
! insn = insn & 0x7ff;
! if ((insn & 0x7fc) == 0x57c
! && addr_mode == 0x14) /* immediate */
! {
! if (insn == 0x57c) /* adjspb */
! width = 1;
! else if (insn == 0x57d) /* adjspw */
! width = 2;
! else if (insn == 0x57f) /* adjspd */
! width = 4;
! else
! internal_error (__FILE__, __LINE__, "bad else");
! numargs = read_memory_integer (pc + 2, width);
! if (width > 1)
! flip_bytes (&numargs, width);
! numargs = -sign_extend (numargs, width * 8) / 4;
! }
! else
! numargs = -1;
! return numargs;
! }
-
/* Return number of args passed to a frame.
Can return -1, meaning no way to tell.
Encore's C compiler often reuses same area on stack for args,
so this will often not work properly. If the arg names
are known, it's likely most of them will be printed. */
int
umax_frame_num_args (struct frame_info *fi)
{
--- 71,116 ----
/* 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.
Encore's C compiler often reuses same area on stack for args,
so this will often not work properly. If the arg names
are known, it's likely most of them will be printed. */
+
int
umax_frame_num_args (struct frame_info *fi)
{
*************** umax_frame_num_args (struct frame_info *
*** 150,156 ****
}
return numargs;
}
-
static int
sign_extend (int value, int bits)
--- 150,155 ----