Commit graph

237 commits

Author SHA1 Message Date
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
Stu Grossman
01aa2b19a1 * findvar.c (read_register, write_register): Make these capable
of reading/writing registers that are shorter than REGISTER_TYPE.
	* (value_from_register):  Install H8500 specific code to return
	proper value when register is being used as a pointer.
	* h8500-tdep.c:  Remove extra defines of NUM_REGS.
	(h8500_skip_prologue):  Use correct lengths for LINK instructions.
	(FRAME_CHAIN):  Change name to h8500_frame_chain.  Rewrite code to
	chain frames properly by combining frame pointer with T reg.
	(init_extra_frame_info):  Delete.  It's now a macro.
	(frame_args_address):  Don't add PTR_SIZE.  Stack args are already
	offset by the correct amount off of the frame pointer.
	(register_byte):  Delete.  It's now a macro.
	(register_raw_size, register_virtual_size):  Delete.  Replaced by
	common routine h8500_register_size, cuz there's no difference
	between the raw & virtual sizes on this machine.
	(register_convert_to_raw, register_convert_to_virtual):  Delete,
	cuz there's no difference between the raw & virtual forms.
	Replaced by memcpy in tm file.
	(register_virtual_type):  Rename to h8500_register_virtual_type.
	Get rid of pointer pseudo-regs, use _REGNUM with all reg names.
	(_initialize_h8500_tdep):  Get rid of crock to ensure that GDB &
	emulator have same reg offsets.  This is all handled in the
	simulator code now.
	(h8500_trapped_internalvar):  New routine to detect references to
	convenience vars acting as pointer pseudo-regs.
	(h8500_value_trapped_internalvar):  Conjure up value of pointer
	pseudo-regs.
	(h8500_set_trapped_internalvar):  Convert set value in real
	register references.
	infcmd.c (read_pc, write_pc):  Add h8500 specific code to handle
	code segment register.
	infrun.c (proceed):  Simplify.  Call write_pc instead of doing it
	by hand.
	(wait_for_inferior):  Add h8500 specific code to add stack segment
	when reading SP register.
	remote-sim.c (fetch_register):  Spacing.
	tm-h8500.h:  #define GDB_TARGET_IS_H8500 to make it easier to
	detect cruft.  Redo all register manipulation stuff.  Get rid of
	pointer pseudo-regs.  (INIT_EXTRA_FRAME_INFO):  Adds stack segment
	to frame pointer.  (IS_TRAPPED_INTERNALVAL,
	VALUE_OF_TRAPPED_INTERNALVAR, SET_TRAPPED_INTERNALVAR):  Use these
	to create internal vars for pointer pseudo-regs.
1993-03-25 23:15:31 +00:00
Fred Fish
e26140c2e1 Remove i860 directory for list of things to keep. 1993-03-25 19:49:29 +00:00
Fred Fish
b0cb2d9154 Add .Sanitize files for new directories. 1993-03-23 03:58:44 +00:00
Fred Fish
034ac992d7 Update to match new config directory structure. 1993-03-23 03:32:59 +00:00
Fred Fish
5076de826c * config/{*.mt, *.mh}: All target and host makefile fragment
config files moved to an appropriate config/<cpu> subdirectory.
	* nm-*, xm-*, tm-*:  All native, host, and target files, which
	get linked to nm.h, xm.h, and tm.h respectively by configure,
	moved to appropriate config/<cpu> subdirectory.
1993-03-23 01:19:58 +00:00
Fred Fish
8256379df2 * config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
	z8k}:  New directories to hold cpu specific configuration files.
	Naming follows gcc convention.
	* config/{*.mt, *.mh}:  All target and host makefile fragment
	config files moved to an appropriate config/<cpu> subdirectory.
1993-03-23 01:07:36 +00:00
Steve Chamberlain
8c100ad074 New file 1993-03-19 23:26:13 +00:00
Stu Grossman
e829d98374 * config/rs6000.mh: Get rid of -Dfd_set=int crock.
This is defined in defs.h if necessary.
	* vx-share/vxWorks.h:  Remove #defs of min and max.
	* vx-share/xdr_ld.c, vx-share/xdr_ptrace.c,
	vx-share/xdr_rdb.c:  include defs.h.
1993-03-16 18:15:25 +00:00
John Gilmore
48a522d968 * configure.in (m68k-adobe-*): New config.
* tm-68k-nofp.h:  New file, lacks 68881 support.
* config/m68k-nofp.mt:  New file.
1993-03-14 10:58:48 +00:00