Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfc] Obsolete host and a29k-*-sym1* and a29k-*-kern* targets.
@ 2001-04-04 13:44 Andrew Cagney
  2001-04-04 15:14 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cagney @ 2001-04-04 13:44 UTC (permalink / raw)
  To: GDB Patches

FYI,

The thing of note is probably:

+ Investigate changing --target=a29k-amd-udi to a29k-*-coff* and
+ rationalize *.mt files.  The got-ya is in remote-eb.c - it has its own
+ custom tty manipulation - I think it should be using the serial
object.

Which is being added to the 5.1 Cleanups.  I'll probably convert it to a
5.2 task - obsolete or rewrite remote-eb.c :-)

	Andrew


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [rfc] Obsolete host and a29k-*-sym1* and a29k-*-kern* targets.
  2001-04-04 13:44 [rfc] Obsolete host and a29k-*-sym1* and a29k-*-kern* targets Andrew Cagney
@ 2001-04-04 15:14 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2001-04-04 15:14 UTC (permalink / raw)
  To: GDB Patches

Grumph :-)
2001-04-04  Andrew Cagney  <ac131313@redhat.com>

	Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
	* configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
	* configure.host (a29k-*-*): Obsolete.
	* Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
	ultra3-xdep.c.
	(ultra3-nat.o, ultra3-xdep.o): Obsolete.
	* config/a29k/tm-ultra3.h: Obsolete.
	* config/a29k/ultra3.mt: Obsolete.
	* config/a29k/ultra3.mh: Obsolete.
	* config/a29k/nm-ultra3.h: Obsolete.
	* config/a29k/xm-ultra3.h: Obsolete.
	* ultra3-xdep.c: Obsolete.
	* ultra3-nat.c: Obsolete.
	* config/a29k/a29k-kern.mt: Obsolete.
	* NEWS: Update.
	* TODO: Update.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.76
diff -p -r1.76 Makefile.in
*** Makefile.in	2001/04/02 20:57:26	1.76
--- Makefile.in	2001/04/04 20:38:46
*************** 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 \
  	vax-tdep.c \
  	vx-share/xdr_ld.c vx-share/xdr_ptrace.c vx-share/xdr_rdb.c \
  	win32-nat.c \
--- 1165,1170 ----
*************** typeprint.o: typeprint.c $(defs_h) $(exp
*** 1982,1990 ****
  	$(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
  	$(value_h) gdb_string.h
  
! ultra3-nat.o: ultra3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) $(regcache_h)
  
! 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)
  
--- 1981,1989 ----
  	$(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
  	$(value_h) gdb_string.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)
  
Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.18
diff -p -r1.18 NEWS
*** NEWS	2001/04/03 21:56:01	1.18
--- NEWS	2001/04/04 20:38:47
*************** Most ns32k hosts and targets			ns32k-*-m
*** 20,25 ****
--- 20,26 ----
  						ns32k-utek-sysv* ns32k-utek-*
  TI TMS320C80					tic80-*-*
  WDC 65816					w65-*-*
+ Ultracomputer (29K) running Sym1		a29k-nyu-sym1 a29k-*-kern*
  
  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.75
diff -p -r1.75 TODO
*** TODO	2001/04/03 21:56:01	1.75
--- TODO	2001/04/04 20:38:49
*************** Steps:		   
*** 193,200 ****
  		  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
--- 193,201 ----
  		  m68*-*bug-*		m68k	 -	  (monitor)
  		  m68*-monitor-*	m68k	 -	  (monitor)
  		  m68*-est-*		m68k	 -	  (monitor)
! 		  a29k-*-*		a29k	 ultra3	  -          yes
! 		  a29k-*-sym1*		a29k	 -	  ultra3     yes
! 		  a29k-*-kern*		a29k	 -	  a29k-kern  yes
  		  powerpcle-*-solaris*	powerpc	 solaris  solaris
  		  powerpcle-*-cygwin*	powerpc	 cygwin	  cygwin
  		  powerpc-*-netware*	powerpc  -	  ppc-nw
*************** dependency lists.  It isn't done in a co
*** 383,388 ****
--- 384,395 ----
  
  The following are more general cleanups and fixes.  They are not tied
  to any specific release.
+ 
+ --
+ 
+ Investigate changing --target=a29k-amd-udi to a29k-*-coff* and
+ rationalize *.mt files.  The got-ya is in remote-eb.c - it has its own
+ custom tty manipulation - it should be using the serial object.
  
  --
  
Index: configure.host
===================================================================
RCS file: /cvs/src/src/gdb/configure.host,v
retrieving revision 1.15
diff -p -r1.15 configure.host
*** configure.host	2001/04/02 20:57:26	1.15
--- configure.host	2001/04/04 20:38:49
*************** esac
*** 26,32 ****
  
  case "${host}" in
  
! a29k-*-*)		gdb_host=ultra3 ;;
  
  alpha*-*-osf1*)		gdb_host=alpha-osf1 ;;
  alpha*-*-osf2*)		gdb_host=alpha-osf2 ;;
--- 26,32 ----
  
  case "${host}" in
  
! # OBSOLETE a29k-*-*)		gdb_host=ultra3 ;;
  
  alpha*-*-osf1*)		gdb_host=alpha-osf1 ;;
  alpha*-*-osf2*)		gdb_host=alpha-osf2 ;;
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.24
diff -p -r1.24 configure.tgt
*** configure.tgt	2001/04/03 21:56:01	1.24
--- configure.tgt	2001/04/04 20:38:49
*************** a29k-*-aout*)		gdb_target=a29k ;;
*** 38,46 ****
  a29k-*-coff*)		gdb_target=a29k ;;
  a29k-*-elf*)		gdb_target=a29k ;;
  a29k-*-ebmon*)		gdb_target=a29k ;;
! a29k-*-kern*)		gdb_target=a29k-kern ;;
  a29k-*-none*)		gdb_target=a29k ;;
! a29k-*-sym1*)		gdb_target=ultra3 ;;
  a29k-*-udi*)		gdb_target=a29k-udi ;;
  a29k-*-vxworks*)        gdb_target=vx29k ;;
  
--- 38,46 ----
  a29k-*-coff*)		gdb_target=a29k ;;
  a29k-*-elf*)		gdb_target=a29k ;;
  a29k-*-ebmon*)		gdb_target=a29k ;;
! # OBSOLETE a29k-*-kern*)		gdb_target=a29k-kern ;;
  a29k-*-none*)		gdb_target=a29k ;;
! # OBSOLETE a29k-*-sym1*)		gdb_target=ultra3 ;;
  a29k-*-udi*)		gdb_target=a29k-udi ;;
  a29k-*-vxworks*)        gdb_target=vx29k ;;
  
From cgf@redhat.com Wed Apr 04 19:02:00 2001
From: Christopher Faylor <cgf@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Cygwin accomodations for newer gccs
Date: Wed, 04 Apr 2001 19:02:00 -0000
Message-id: <20010404220312.A6841@redhat.com>
X-SW-Source: 2001-04/msg00039.html
Content-length: 4775

Newer versions of gcc for Cygwin no longer implicitly define WIN32
conditionals.

This patch fixes that problem.

cgf

Wed Apr  4 21:48:42 2001  Christopher Faylor <cgf@cygnus.com>

	* main.c: Remove windows.h use.
	(gdbtk_test): Use PATH_MAX for home var calculation.
	* remote-e7000.c (e7000_parse_device): Accomodate CYGWIN as well as 
	WIN32 in colon test.
	* ser-tcp.c: Use modern __CYGWIN__ conditional.
	* source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
	(openp): Ditto.
	* symfile.c (symfile_bfd_open): Ditto.
	* gdbtk/generic/gdbtk.c: Ditto.

Index: main.c
===================================================================
RCS file: /cvs/uberbaum/gdb/main.c,v
retrieving revision 1.8
diff -u -p -r1.8 main.c
--- main.c	2001/04/05 00:04:45	1.8
+++ main.c	2001/04/05 01:55:58
@@ -91,7 +91,6 @@ extern int enable_external_editor;
 extern char *external_editor_command;
 
 #ifdef __CYGWIN__
-#include <windows.h>		/* for MAX_PATH */
 #include <sys/cygwin.h>		/* for cygwin32_conv_to_posix_path */
 #endif
 
@@ -535,13 +534,13 @@ extern int gdbtk_test (char *);
      *before* all the command line arguments are processed; it sets
      global parameters, which are independent of what file you are
      debugging or what directory you are in.  */
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
   {
     char *tmp = getenv ("HOME");
 
     if (tmp != NULL)
       {
-	homedir = (char *) alloca (MAX_PATH + 1);
+	homedir = (char *) alloca (PATH_MAX + 1);
 	cygwin32_conv_to_posix_path (tmp, homedir);
       }
     else
Index: remote-e7000.c
===================================================================
RCS file: /cvs/uberbaum/gdb/remote-e7000.c,v
retrieving revision 1.17
diff -u -p -r1.17 remote-e7000.c
--- remote-e7000.c	2001/03/06 08:21:12	1.17
+++ remote-e7000.c	2001/04/05 01:55:58
@@ -543,7 +543,7 @@ or \t\ttarget e7000 tcp_remote <host>[:<
 or \t\ttarget e7000 pc\n");
 	}
 
-#if !defined(__GO32__) && !defined(_WIN32)
+#if !defined(__GO32__) && !defined(_WIN32) && !defined(__CYGWIN__)
       /* FIXME!  test for ':' is ambiguous */
       if (n == 1 && strchr (dev_name, ':') == 0)
 	{
Index: ser-tcp.c
===================================================================
RCS file: /cvs/uberbaum/gdb/ser-tcp.c,v
retrieving revision 1.3
diff -u -p -r1.3 ser-tcp.c
--- ser-tcp.c	2001/03/06 08:21:16	1.3
+++ ser-tcp.c	2001/04/05 01:55:58
@@ -29,7 +29,7 @@
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <sys/socket.h>
-#ifndef __CYGWIN32__
+#ifndef __CYGWIN__
 #include <netinet/tcp.h>
 #endif
 
Index: source.c
===================================================================
RCS file: /cvs/uberbaum/gdb/source.c,v
retrieving revision 1.11
diff -u -p -r1.11 source.c
--- source.c	2001/03/27 20:36:24	1.11
+++ source.c	2001/04/05 01:55:59
@@ -331,7 +331,7 @@ mod_path (char *dirname, char **which_pa
       }
 
       if (!(SLASH_P (*name) && p <= name + 1)	/* "/" */
-#if defined(_WIN32) || defined(__MSDOS__)
+#if defined(_WIN32) || defined(__MSDOS__) || defined(__CYGWIN__)
       /* On MS-DOS and MS-Windows, h:\ is different from h: */
 	  && !(!SLASH_P (*name) && ROOTED_P (name) && p <= name + 3)	/* d:/ */
 #endif
@@ -370,7 +370,7 @@ mod_path (char *dirname, char **which_pa
 
       if (name[0] == '~')
 	name = tilde_expand (name);
-#if defined(_WIN32) || defined(__MSDOS__)
+#if defined(_WIN32) || defined(__MSDOS__) || defined(__CYGWIN__)
       else if (ROOTED_P (name) && p == name + 2)	/* "d:" => "d:." */
 	name = concat (name, ".", NULL);
 #endif
@@ -526,7 +526,7 @@ openp (char *path, int try_cwd_first, ch
   if (!path)
     path = ".";
 
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__CYGWIN__)
   mode |= O_BINARY;
 #endif
 
Index: symfile.c
===================================================================
RCS file: /cvs/uberbaum/gdb/symfile.c,v
retrieving revision 1.30
diff -u -p -r1.30 symfile.c
--- symfile.c	2001/03/27 20:36:24	1.30
+++ symfile.c	2001/04/05 01:55:59
@@ -1052,7 +1052,7 @@ symfile_bfd_open (char *name)
 
   /* Look down path for it, allocate 2nd new malloc'd copy.  */
   desc = openp (getenv ("PATH"), 1, name, O_RDONLY | O_BINARY, 0, &absolute_name);
-#if defined(__GO32__) || defined(_WIN32)
+#if defined(__GO32__) || defined(_WIN32) || defined (__CYGWIN__)
   if (desc < 0)
     {
       char *exename = alloca (strlen (name) + 5);
Index: gdbtk/generic/gdbtk.c
===================================================================
RCS file: /cvs/uberbaum/gdb/gdbtk/generic/gdbtk.c,v
retrieving revision 1.9
diff -u -p -r1.9 gdbtk.c
--- gdbtk.c	2001/04/05 00:04:28	1.9
+++ gdbtk.c	2001/04/05 01:55:59
@@ -34,7 +34,7 @@
 #include "demangle.h"
 #include "version.h"
 
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__CYGWIN__)
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #endif


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-04 15:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-04 13:44 [rfc] Obsolete host and a29k-*-sym1* and a29k-*-kern* targets Andrew Cagney
2001-04-04 15:14 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox