Commit Graph

246 Commits

Author SHA1 Message Date
K. Richard Pixley 357992027a * remove-vx.c (vx_read_register, vx_write_register): collapse
ifdef I80960 else (assumes) m68k into parameterizable macros
	  VX_NUM_REGS and VX_SIZE_FPREGS.
	* config/m68k/tm-vx68.h, config/i960/tm-vx960.h (VX_NUM_REGS,
	  VX_SIZE_FPREGS): new definitions.
1993-06-08 20:56:23 +00:00
Stu Grossman 13d4405574 Remove # from XDEPFILES. This causes `make alldeps.mak' to produce a bad
ALLDEPFILES definition.
1993-06-05 01:38:08 +00:00
David D. Zuhn 649aee3f85 * config/sparc/xm-sun4sol2.h: define MEM_FNS_DECLARED 1993-06-04 21:19:51 +00:00
Ian Lance Taylor 761d5a4bad * configure.in (mips-idt-ecoffl*): New target; use idtl.
(mips-idt-ecoff*): Added trailing '*'.
	* config/mips/idtl.mt: New file; like idt.mt, but little endian.
1993-06-04 19:47:49 +00:00
Stu Grossman bd91ddd176 * Makefile.in: Remove ser-tcp.[co]. (Use XDEPFILES instead.)
* alldeps.mak, depend:  Rebuild to account for ser-tcp.
	* config/sparc/sun4os4.mh:  Add ser-tcp to XDEPFILES.
1993-06-03 10:54:58 +00:00
Rob Savoye d7df19a6c3 These got lost somehow. 1993-06-01 05:22:50 +00:00
K. Richard Pixley 87756e15db added things-to-lose sections 1993-05-27 06:44:29 +00:00
Stu Grossman c0ab114cd6 Add lynx files. 1993-05-24 21:05:43 +00:00
Stu Grossman 8e481e13e2 * config/i386/{i386lynx.mh i386lynx.mt nm-i386lynx.h tm-i386lynx.h
xm-i386lynx.h}:  New configuration for Lynx.
1993-05-24 20:58:41 +00:00
Peter Schauer b5ec0a8e8a * config/mips/tm-irix3.h: Add sigcontext offsets for Irix. 1993-05-22 10:35:55 +00:00
Peter Schauer ac8cf67dca * config/mips/tm-irix3.h: Clean up, use tm-bigmips.h and redefine
the necessary bits.
	* findvar.c (value_from_register): Fix uninitialized first_addr
	which caused problems with assignment of doubles to register variables
	on some targets.
	* mipsread.c: Remove TM_FILE_OVERRIDE, include tm.h and provide the
	missing mips definitions if necessary.

	Fix handling of double register variables for mips targets and big
	endian hosts. These patches are from Paul Flinders <ptf@delcam.co.uk>.
	* config/mips/tm-mips.h: Increase MAX_REGISTER_{RAW,VIRTUAL}_SIZE to
	  8 bytes for doubles.
	* config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): New macro for
	  conversion of type held in multiple registers to host format.
	* config/mips/tm-mips.h (REGISTER_CONVERT_FROM_TYPE): New macro,
	  companion to REGISTER_CONVERT_TO_TYPE.
	* config/mips/tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE):
	  Convert to function calls.
	* config/mips/tm-mips.h (FIX_CALL_DUMMY): New code for big endian
	  mips targets.
	* mips-tdep.c (mips_print_register): Raw buffer now needs just
	  MAX_REGISTER_RAW_SIZE bytes.
	* mips-tdep.c (mips_print_register): Use REGISTER_CONVERT_TO_TYPE
	  (if defined) for doubles.
	* mips-tdep.c: (mips_extract_return_value, mips_store_return_value):
	  New functions, take care of REGISTER_CONVERT_TO/FROM_TYPE.
	* valops.c (value_assign): Use REGISTER_CONVERT_TO_TYPE if
	  defined.
	* findvar.c (value_from_register): Use REGISTER_CONVERT_TO_TYPE if
	  defined.
1993-05-22 07:26:25 +00:00
Sean Eric Fagan d0e1e015dc Slight changes for the 29k-udi target. 1993-05-21 18:32:01 +00:00
Sean Eric Fagan f2e349a242 Change the configuration, for target 29k-udi, a little bit. 1993-05-21 18:07:23 +00:00
Sean Eric Fagan 31589e1ec0 Change the configuration a little bit. 1993-05-21 18:06:53 +00:00
K. Richard Pixley 80ddbedc45 fix typo 1993-05-19 22:44:08 +00:00
Stu Grossman f3fe87c79e * config/pa/nm-hppab.h: Comment PTRACE_ARG3_TYPE. 1993-05-19 22:43:06 +00:00
Jim Kingdon cdaa790509 * config/vax/vaxbsd.mh: Add "NAT_FILE= nm-vax.h".
* config/vax/xm-vaxbsd.h: Use <sys/param.h> not <machine/limits.h>
1993-05-19 02:01:05 +00:00
Jim Kingdon 993583e53b * blockframe.c (get_prev_frame_info): If pc in sigtramp, set
signal_handler_caller.
	* tm-68k.h (FRAME_{CHAIN,SAVED_PC}): Deal with sigtramp.
	* tm-hp300bsd.h: Define SIGTRAMP_{START,END} not IN_SIGTRAMP.
	* inferior.h (IN_SIGTRAMP): Definition moved from infrun.c.
	Use SIGTRAMP_START if defined.
	* infcmd.c (step_1): Use SIGTRAMP_{START,END} if needed.
	* infrun.c (wait_for_inferior): Check IN_SIGTRAMP before SKIP_PROLOGUE.
1993-05-19 00:57:48 +00:00
Jim Kingdon 865e574b06 * config/{i386/linux.mh,m68k/isi.mh} (NATDEPFILES):
Comment out corelow.c because core dumps are broken on these machines.
1993-05-18 23:16:00 +00:00
Jim Kingdon d2712f0267 * config/m68k/xm-hp300bsd.h: Include <sys/param.h> to avoid INT_MAX
redefined warnings.
1993-05-11 05:17:40 +00:00
Jim Kingdon 4a2383c1f8 Patch from Jeffrey Law:
* gdb/config/pa/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
1993-05-10 23:10:46 +00:00
Fred Fish 64c5ac4f6d * config/pa/xm-hppah.h (MALLOC_INCOMPATIBLE): Define it, and
include declarations for malloc/realloc/free.  Both malloc and
	realloc return 'void *' for non-ANSI compilations.
1993-05-08 19:42:07 +00:00
Stu Grossman e22a9870fd * Patches from Jeffrey Law <law@cs.utah.edu>.
* gdb/hppa-tdep.c: Declare frame_saved_pc.
	(frameless_function_invocation): New function.
	(frame_saved_pc, init_extra_frame_info): Use
	frameless_function_invocation.
	* gdb/config/pa/tm-hppa.h (SAVED_PC_AFTER_CALL): Use saved_pc_after
	call instead of just grabbing the value currently in %r2.
	(FRAMELESS_FUNCTION_INVOCATION): Use frameless_function_invocation.
	* gdb/config/pa/tm-hppah.h (SAVED_PC_AFTER_CALL): Delete private
	definition and use the common one in tm-hppa.h.
1993-05-05 23:53:50 +00:00
Stu Grossman d83a671068 * gdb/config/pa/tm-hppa.h (ABOUT_TO_RETURN): Handle a return
which nullifies the following instruction.  (From law@cs.utah.edu).
1993-05-05 22:19:00 +00:00
Peter Schauer 0142214462 * config/mips/tm-mips.h (STABS_REG_TO_REGNUM): Match it with the gcc
definition.
	* config/mips/tm-irix3.h (STABS_REG_TO_REGNUM): Add.
1993-05-01 09:56:13 +00:00
Stu Grossman 55bee667d8 * The following patches are from Jeffrey Law <law@cs.utah.edu>.
* config/pa/hppabsd.mh:  Add more files to NATDEPFILES.
	* config/pa/xm-hppa[bh].h: Define FIVE_ARG_PTRACE.
	* hppab-nat.c: Delete WANT_NATIVE_TARGET ifdefs.
	ptrace needs 5 arguments, #define ptrace to always
	pass zero as the 5th argument.
1993-05-01 01:39:20 +00:00
Steve Chamberlain 24725cfeeb Lint. 1993-05-01 00:51:36 +00:00
K. Richard Pixley 13b464b2cf * config/sparc/sun4sol2.mh (XM_CLIBS): add -lsocket which is
required target ports which use sockets (like a29k-udi).
1993-05-01 00:15:19 +00:00
Jim Kingdon 0626f40d92 * hp300ux-nat.c: Cast second arg to supply_register calls.
(_initialize_kernel_u_addr, getpagesize): New functions.
	(store_inferior_register_1): Change arg name from value to val.
	(fetch_core_registers): Make arg core_reg_size unsigned.
	Pass 5 args to ptrace.
	* config/m68k/xm-hp300hpux.h: Define FIVE_ARG_PTRACE.
	Remove KERNEL_U_ADDR stuff.
	* infptrace.c [FIVE_ARG_PTRACE]: Pass 5th arg to ptrace.
	* config/m68k/hp300hpux.m{t,h}:
	Move exec.o from NATDEPFILES to TDEPFILES
	* config/m68k/hp300hpux.mt: Mention GAS requirement.  Remove
	hp-include stuff.  Add m68k-tdep.o to TDEPFILES.
1993-04-28 21:20:40 +00:00
Jim Kingdon 08bb261766 * config/sparc/xm-sun4os4.h [__STDC__]: Don't use MALLOC_INCOMPATIBLE. 1993-04-28 19:17:50 +00:00
Ian Lance Taylor c0f2f39c1c * config/sparc/sun4sol2.mh (XM_CLIBS): Define to be -lnsl. 1993-04-28 16:29:35 +00:00
Jim Kingdon e82980e4ec * config/sparc/xm-sun4os4.h: Declare free() to return int.
Remove twisted use of PARAMS.
1993-04-28 13:51:26 +00:00
Jim Kingdon 609e1c577b * config/rs6000/xm-rs6000.h: Don't define MALLOC_INCOMPATIBLE now
that ansidecl.h assumes ANSI on AIX.
1993-04-28 13:42:43 +00:00
Steve Chamberlain 9faacb925f Support for Hitachi SH 1993-04-27 01:17:32 +00:00
Stu Grossman 66a1aa071e * Merge in HPPA/BSD patches from Utah:
* defs.h:  Add const to 2nd arg of psignal prototype.
	* hppah-tdep.c:  Renamed to hppa-tdep.c 'cuz it's common code with
	BSD now.
	* hppab-core.c:  Deleted.  No longer useful.
	* hppab-nat.c:  #include more files.  Use PT_WUREGS, not
	PT_WRITE_U.
	* hppab-tdep.c:  Deleted.  Supplanted by hppa-tdep.c.
	* config/pa/hppabsd.mh (NATDEPFILES):  Remove hppab-core.o.
	* config/pa/hppabsd.mt (TDEPFILES):  hppab-tdep.o => hppa-tdep.o
	* config/pa/hppahpux.mt (TDEPFILES):  hppab-tdep.o => hppa-tdep.o
	* config/pa/xm-hppab.h:  #define SET_STACK_LIMIT_HUGE.
1993-04-23 23:43:18 +00:00
Jim Kingdon 5afa2040f4 Thu Apr 22 14:50:05 1993 Jim Kingdon (kingdon@cygnus.com)
* symtab.h: Fix LOC_REF_ARG comment.

Wed Apr 22 20:21:30 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
			  and Jim Kingdon (kingdon@cygnus.com)

	* stabsread.c (define_symbol): Combine a 'p', 'r' arg pair to a
	LOC_REGPARM symbol.
	* config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Revise comments.
	symfile.c (compare_symbols): Don't check first character; STRCMP
	does that.

	* stabsread.c (define_symbol): Generate a LOC_REGPARM_ADDR for
	structures that are passed by address in a register.
	* symtab.h (enum address_class): Add LOC_REGPARM_ADDR.
	* findvar.c (read_var_value),
	printcmd.c (address_info, print_frame_args),
	stack.c (print_frame_arg_vars), symmisc.c (print_{,partial_}symbol),
	* symtab.c (lookup_block_symbol): Deal with it.
1993-04-22 22:27:25 +00:00
Fred Fish 33c01d94ca Remove CVS directory from list of things to keep. 1993-04-20 16:49:33 +00:00
Stu Grossman 9583b29548 * irix4-nat.c (fetch_core_registers): Special version of this for
Irix 4.x, which stores regs a bit differently from other /proc
	based systems.
	* procfs.c, core-svr4.c:  Move fetch_core_registers from procfs.c
	to new file core-svr4.c.
	* config/i386/i386sol2.mh, config/i386/i386v4.mh, config/m68k/amix.mh,
	config/i386/ncr3000.mh, config/sparc/sun4sol2.mh:  Add core-svr4.o
	to NATDEPFILES.
	* config/mips/irix4.mh:  Add corelow.o to NATDEPFILES.
1993-04-20 06:01:56 +00:00
K. Richard Pixley 73d0fc7820 Add section table to objfile struct. Use it for find_pc_section.
* objfiles.c (add_to_objfile_sections,
  build_objfile_section_table, find_pc_section): new functions.
  (allocate_objfile): build section table.
* objfiles.h (struct obj_section): new structure.
  (struct objfile): add section table.
  (find_pc_section): new prototype.
* solib.[ch] (find_pc_section_from_so_list): removed.
* sparc-tdep.c: include objfiles.h for find_pc_section.  include
  symfile.h for objfiles.h.
  (in_solib_trampoline): adjusted for new find_pc_section
  prototype.  Removed BAD_RICH_HACK ifdefs.
* symfile.c (syms_from_objfile): offset objfile sections.
  (find_pc_section): removed.  Also removed BAD_RICH_HACK ifdefs.
* symfile.h (find_pc_section): prototype removed.  Also fixed
  comment typo NUL -> NULL.
* target.[ch] (find_pc_section_from_targets): removed.
* config/sparc/tm-sun4sol2.h (BAD_RICHH_HACK): removed.
1993-04-07 07:04:26 +00:00
Stu Grossman e8a5f0ed39 *** empty log message *** 1993-04-06 23:48:29 +00:00
Fred Fish 7788e8221f (Changes and new files to make "none" a full fledged configuration)
* config/none/{nm-none.h, tm-none.h, xm-none.h}:  New files.
	Currently only tm-none.h has any meaningful contents.
	* config/none/none.mh (NAT_FILE):  Use nm-none.h
	* config/none/none.mh (XM_FILE):  Use xm-none.h
	* config/none/none.mt (TM_FILE):  Use tm-none.h
1993-04-06 22:09:33 +00:00
Stu Grossman 0c101d4920 * configure.in: Sparclite uses sparc config dir. Also has it's
own tm- & .mt files now.  Also add sparclite to configdirs.
	* go32-xdep.c:  Dummy routines for sigsetmask & strlwr.
	* config/i386/go32.mh:  Nullify def of TERMCAP.
	* config/i386/xm-go32.h:  Get rid of redef of EIO.
	* config/sparc/{sparclite.mh tm-sparclite.h}:  New sparclite
	specific configs.  Very similar to sun4os4, but without solib.
	* sparclite/{Makefile.in configure.in}:  First cut at making this
	dir configgable.
1993-04-06 17:40:55 +00:00
Stu Grossman 4e772f4426 * Makefile.in (SFILES OBS): Add serial.[co] & ser-hardwire.[co].
These implement a new serial line interface for talking to remote
	targets.
	* configure.in:  Link ser-hardwire.c to ser-unix.c for all hosts,
	EXCEPT go32, which gets ser-go32.c.
	* remote.c:  Use new serial interface.  More remote-xxx's to be
	converted later.
	* ser-bsd.c, ser-termios.c:  Removed.
	* serial.c:  New.  Implements common operations for all serial
	types.
	* ser-unix.c:  New.  Unix specific serial operations for various
	flavors of Unix (Posix, SysV, BSD).
	* serial.h:  Generic serial interface defs.
	* config/i386/go32.mh, config/i386/i386bsd.h,
	config/m68k/apollo68b.mh, config/sparc/sun4os4.mh:  Remove
	ser-bsd.o from XDEPFILES.  All the magic is now handled in
	configure.in.
1993-04-06 05:50:54 +00:00
Stu Grossman 9acdb2dc82 * config/h8500/tm-h8500.h: Clean up brain damage found by GCC. 1993-04-06 03:52:31 +00:00
Fred Fish ccad2ffc38 tm-68k* -> tm-m68k* 1993-04-06 02:26:41 +00:00
K. Richard Pixley 0e18483336 * sparc-tdep.c (in_solib_trampoline), symfile.c (find_pc_section):
ifdef protect using BAD_RICH_HACK.  This should be removed soon.
	* config/sparc/tm-sun4sol2.h (BAD_RICH_HACK): define.
1993-04-02 00:50:30 +00:00
K. Richard Pixley 2093fe6840 Teach sparc solaris to next over shared library functions.
* solib.[hc] (find_pc_section_from_so_list): new function and
  prototype.
* sparc-tdep.c (in_solib_trampoline): new function.
* symfile.[hc] (find_pc_section): new function and prototypes.
* target.[hc] (find_pc_section_from_targets): new function and
  prototypes.
* config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): redefine to
  in_solib_trampoline.
1993-03-31 00:29:22 +00:00
Jim Kingdon 359a097f9f Tue Mar 30 08:06:24 1993 Jim Kingdon (kingdon@cygnus.com)
* command.c (do_setshow_command): Use %u with var_{u,z}integer.

	* command.{c,h}: New var_type var_integer.
	main.c: Use it for history_size.

	* rs6000-tdep.c, xcoffexec.c, config/rs6000/xm-rs6000.h, breakpoint.c:
	Lint and byte-order fixups.
1993-03-30 23:06:29 +00:00
Fred Fish 2225eb851e * config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
* m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
	tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
	tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}:  Include tm-m68k.h
	instead of tm-68k.h.
	* Makefile.in (HFILES):  tm-68k.h renamed to tm-m68k.h.
	* README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
	m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
	nm-hp300bsd.h, config/m68k/xm-apollo68b.h}:  Map '68k' to 'm68k'.
	* a29k/tm-a29k.h, doc/gdbint.texinfo:  Account for renaming of
	tm-68k.h to tm-m68k.h.
	* m68k/m68k-fp.mt (TM_FILE):  tm-68k-fp.h renamed to tm-m68k-fp.h.
	* m68k/m68k-nofp.mt (TM_FILE):  tm-68k-nofp.h renamed to
	tm-m68k-nofp.h.
1993-03-30 00:33:44 +00:00
Fred Fish d7d35f004c * config/a29k/tm-a29k.h: Renamed from config/a29k/tm-29k.h.
* a29k-pinsn.c:  Renamed from am29k-pinsn.c.
	* a29k-tdep.c:  Renamed from am29k-tdep.c.
	* remote-eb.c, config/a29k/tm-ultra3.h:  Include renamed tm-a29k.h.
	* remote-monitor.c, remote-st2000.c, config/a29k/{nm-ultra3.h,
	tm-a29k.h, xm-ultra3.h}, config/romp/rtbsd.mh, doc/gdbinv-s.texi,
	testsuite/gdb.t15/funcargs.exp, testsuite/gdb.t17/callfuncs.exp:
	Map '29k' to 'a29k'.
	* config/a29k/{a29k-kern.mt, a29k-udi.mt, a29k.mt, ultra3.mt}
	(TDEPFILES):  Use renamed a29k-pinsn.o and a29k-tdep.o.
	* config/a29k/{a29k-udi.mt, a29k.mt} (TM_FILE):  Use renamed
	tm-a29k.h.
	* config/a29k/a29k-udi.mt (MT_CFLAGS):  Remove TARGET_AM29K
	define that does not appear anywhere else in the gdb source tree.
	* doc/gdbinit.texinfo:  Document renaming of tm-29k.h to tm-a29k.h.
1993-03-29 23:38:30 +00:00