From: Jim Kingdon Date: Fri, 2 Jul 1993 18:48:44 +0000 (+0000) Subject: * Remove unused STACK_END_ADDR in the following files (in other X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75fa3e0fd2d28cf1101e8cb4f7eed2cf8d8db2fb;p=binutils-gdb.git * Remove unused STACK_END_ADDR in the following files (in other files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h, tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h, tm-hp300hpux.h, tm-isi.h. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d25a293f604..20d224e7a07 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,23 @@ +Fri Jul 2 13:39:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + + * Remove unused STACK_END_ADDR in the following files (in other + files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h, + tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h, + tm-hp300hpux.h, tm-isi.h. + Thu Jul 1 09:51:27 1993 Jim Kingdon (kingdon@cygnus.com) + * config/mips/nm-riscos.h: Define NBPG and UPAGES. + config/mips/xm-riscos.h: Include . + + * ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment, + not an initializer, to copy the structure. + + * gdbtypes.h (struct type): Add field tag_name. + * gdbtypes.c (type_name_no_tag), c-typeprint.c (c_type_print_base): + Use it. + * {coff,dwarf,mips,stabs}read.c: Set it. + * xm-sysv4.h: Undefine HAVE_TERMIO. * config/mips/nm-riscos.h: Remove unmatched #endif. diff --git a/gdb/config/a29k/tm-a29k.h b/gdb/config/a29k/tm-a29k.h index 1d10bfec7e5..cc6592e3e29 100644 --- a/gdb/config/a29k/tm-a29k.h +++ b/gdb/config/a29k/tm-a29k.h @@ -59,13 +59,9 @@ CORE_ADDR skip_prologue (); This is the register stack; We call it "CONTROL" in GDB for consistency with Pyramid. */ +/* I suspect this is obsolete, just like STACK_END_ADDR. */ #define CONTROL_END_ADDR 0x80200000 -/* Memory stack. This is for the default register stack size, which is - only 0x800 bytes. Perhaps we should let the user specify stack sizes - (and tell EBMON with the "ZS" command). */ -#define STACK_END_ADDR 0x801ff800 - /* Stack grows downward. */ #define INNER_THAN < diff --git a/gdb/config/i386/tm-i386v.h b/gdb/config/i386/tm-i386v.h index c9557d30a5f..66878e2d718 100644 --- a/gdb/config/i386/tm-i386v.h +++ b/gdb/config/i386/tm-i386v.h @@ -59,10 +59,6 @@ i386_skip_prologue PARAMS ((int)); #define SAVED_PC_AFTER_CALL(frame) \ (read_memory_integer (read_register (SP_REGNUM), 4)) -/* Address of end of stack space. */ - -#define STACK_END_ADDR 0x80000000 - /* Stack grows downward. */ #define INNER_THAN < diff --git a/gdb/config/i960/tm-nindy960.h b/gdb/config/i960/tm-nindy960.h index dba88e0894e..9d7dbffeb09 100644 --- a/gdb/config/i960/tm-nindy960.h +++ b/gdb/config/i960/tm-nindy960.h @@ -73,13 +73,6 @@ extern char *nindy_ttyname; /* Name of serial port to talk to nindy */ extern void nindy_before_main_loop(); /* In remote-nindy.c */ -/* Address of end of stack space. - * This probably doesn't matter for nindy, because it's only used - * in manipulation of core files, which we don't support. - */ - -#define STACK_END_ADDR (0xfe000000) - /* FRAME_CHAIN_VALID returns zero if the given frame is the outermost one and has no caller. diff --git a/gdb/config/m68k/tm-amix.h b/gdb/config/m68k/tm-amix.h index f5438be5283..5d5f8a223ee 100644 --- a/gdb/config/m68k/tm-amix.h +++ b/gdb/config/m68k/tm-amix.h @@ -32,13 +32,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define DECR_PC_AFTER_BREAK 0 /* No decrement required */ -/* Address of end of stack space. Actually one byte past it. - This value is typically very OS dependent. - FIXME: Check to see if SVR4 offers some machine independent way - of discovering this value and use it if so, and if we need it. */ - -/* #define STACK_END_ADDR 0xc0800000 */ - /* Use the alternate method of determining valid frame chains. */ #define FRAME_CHAIN_VALID_ALTERNATE diff --git a/gdb/config/m68k/tm-hp300hpux.h b/gdb/config/m68k/tm-hp300hpux.h index 263d1eb2e87..61e755bc611 100644 --- a/gdb/config/m68k/tm-hp300hpux.h +++ b/gdb/config/m68k/tm-hp300hpux.h @@ -24,8 +24,4 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define BPT_VECTOR 0x1 -/* Address of end of stack space. */ - -#define STACK_END_ADDR 0xFFF00000 - #include "m68k/tm-m68k.h" diff --git a/gdb/config/m68k/tm-isi.h b/gdb/config/m68k/tm-isi.h index eec7f304579..19a099acdd0 100644 --- a/gdb/config/m68k/tm-isi.h +++ b/gdb/config/m68k/tm-isi.h @@ -22,10 +22,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define HAVE_68881 -/* Address of end of stack space. */ - -#define STACK_END_ADDR 0xfffe000 - /* Data segment starts at etext rounded up to DATAROUND in {N,Z}MAGIC files */ #define DATAROUND 0x20000 diff --git a/gdb/config/m68k/tm-news.h b/gdb/config/m68k/tm-news.h index 4bcaf4fdcd6..3d2cfb32035 100644 --- a/gdb/config/m68k/tm-news.h +++ b/gdb/config/m68k/tm-news.h @@ -29,14 +29,6 @@ Here is an m-news.h file for gdb. It supports the 68881 registers. #define HAVE_68881 -/* Use to compute STACK_END_ADDR. */ -#define TARGET_UPAGES 2 -#define TARGET_NBPG 4096 - -/* Address of end of stack space. */ - -#define STACK_END_ADDR (0x80000000 - TARGET_UPAGES * TARGET_NBPG) - /* Extract from an array REGBUF containing the (raw) register state a function return value of type TYPE, and copy that, in virtual format, into VALBUF. */ diff --git a/gdb/config/m68k/tm-sun2.h b/gdb/config/m68k/tm-sun2.h index 864de59e4e1..a2d08afc32d 100644 --- a/gdb/config/m68k/tm-sun2.h +++ b/gdb/config/m68k/tm-sun2.h @@ -17,11 +17,4 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* Address of the end of stack space. We get this from the system - include files. */ - -#include -#include -#define STACK_END_ADDR USRSTACK - #include "m68k/tm-m68k.h" diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 4a9d375fa1e..0ee23c6c18a 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -55,10 +55,6 @@ extern int mips_fpu; #define IN_SIGTRAMP(pc, name) in_sigtramp(pc, name) -/* Address of end of stack space. */ - -#define STACK_END_ADDR (0x7ffff000) - /* Stack grows downward. */ #define INNER_THAN <