Commit graph

479 commits

Author SHA1 Message Date
Peter Schauer
7636cf204f * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
	Define to make backtracing through the various sigtramp handlers
	work.
1994-02-27 21:25:36 +00:00
Jeff Law
6bfd168c65 * confiugre.in (hppa*-*-osf*): New configuration.
* config/pa/hppaosf.mt: New target makefile fragment.
        * config/pa/tm-hppao.h: New target include file.
1994-02-24 16:10:15 +00:00
Peter Schauer
084475102b * config/mips/tm-mips.h (FIX_CALL_DUMMY): For big endian targets,
error() on TYPE_CODE_FLT arguments whose size is greater than 8,
	swap all other TYPE_CODE_FLT arguments as mips_push_arguments
	ensures that floats are promoted to doubles before they are pushed
	on the stack.
1994-02-19 11:26:47 +00:00
Kung Hsu
031b390acb Modified Files:
tm-mips64.h tm-mips.h

	Change REGISTER_VIRTUAL_TYPE to handle 64 bit register.
1994-02-19 00:50:48 +00:00
Jim Kingdon
d5cb2f7d1a * config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
Rename to tm-rs6000ly.h, nm-rs6000ly.h, xm-rs6000ly.h for 14
	character file names.
	* Makefile.in (ALLPARAM): Add these files.
1994-02-18 15:55:21 +00:00
Jim Kingdon
662f3b3f1f * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
character file names.
	Makefile.in: Add Kung's new mips64 files.
1994-02-18 15:42:48 +00:00
Kung Hsu
4fbce2fdd2 Added Files:
bigmips64.mt idt64.mt idtl64.mt littlemips64.mt tm-bigmips64.h
	tm-idt64.h tm-idtl64.h tm-mips64.h

	Add the above files to support mips 64 bits target.
1994-02-18 01:21:36 +00:00
Stu Grossman
d87d7b10af * configure.in: Add Lynx/rs6000 support.
* lynx-nat.c:  Clean up some Sparc stuff.  Clean up ptrace error
	messages.  Add rs6000 support.  Don't try to modify unwritable
	registers.
	* rs6000-nat.c:  Move lots of native dependent stuff (like core
	file support) from rs6000-tdep.c & xcoffexec.c to here.
	* rs6000-tdep.c:  Move native dependent stuff to nat.c.
	* xcoffexec.c:  Move native dependent stuff to nat.c.
	* config/rs6000/nm-rs6000.h:  Move defs of SOLIB_* macros to here
	from tm	file.
	* config/rs6000/tm-rs6000.h:  Remove defs of SOLIB_* funcs, cuz they're
	really native.
	* config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
	New files to support Lynx/rs6000.
1994-02-12 01:08:29 +00:00
Peter Schauer
4c1b6b07ea * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
1994-02-08 09:05:56 +00:00
Jim Kingdon
ea5dad7f09 * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
* configure.in: Remove comment about m68k-em.mt.
	* Makefile.in: Remove references.
1994-02-07 17:04:47 +00:00
Jim Kingdon
01cd70b985 * config/mips/mipsm3.mh, config/i386/i386m3.mh,
config/ns32k/ns32km3.mh: Define NAT_FILE.
	* config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
	(it was inconsistent and namespace-wrong) to NM_M3_H.
	* m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
	(m3_open): New function.
	(m3_ops): Use it.
	* TODO: Update Mach section.

	* Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
1994-02-06 22:38:28 +00:00
Peter Schauer
57a9fee313 * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
(REGISTER_CONVERT_TO_RAW):  Add missing backslash.
1994-02-06 11:32:46 +00:00
Jim Kingdon
8b0a85bad1 * config/i386/tm-i386aix.h (REGISTER_CONVERT_TO_RAW): Add missing
backslash.
	* i386-tdep.c (i386_extract_return_value): Pass TYPE_LENGTH (type)
	to store_floating, not nonexistent variable len.
1994-02-05 20:38:12 +00:00
Jim Kingdon
aa56c7161b * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
New functions.
	(mips_store_word): Change calling convention to return errors, and
	to provide old contents if the caller wants it.
	(mips_xfer_memory): Deal with errors from mips_store_word.
	* config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT
	define now that remote-mips.c doesn't use BREAKPOINT.
1994-02-05 20:30:35 +00:00
Steve Chamberlain
6adfba803c REGISTER_TYPE is obsolete. 1994-02-05 01:07:48 +00:00
Steve Chamberlain
e24270fc31 Fix REGISTER_TYPE and order of register names. 1994-02-05 00:39:09 +00:00
Steve Chamberlain
d4aecb5a8a Fix REGISTER_TYPE. 1994-02-05 00:38:29 +00:00
Steve Chamberlain
826e69cf2a Get REGISTER_TYPE right. 1994-02-05 00:36:32 +00:00
Jim Kingdon
9c01440dd2 * config/rs6000/tm-rs6000.h: Declare rs6000_struct_return_address
as CORE_ADDR to match definition in rs6000-tdep.c.
1994-02-04 15:55:04 +00:00
Jim Kingdon
eade0c6ce8 * printcmd.c (decode_format): Don't blithely set the size for
an address to 'w'.  Make it 'g' or 'h', depending on TARGET_PTR_BIT.

	* defs.h: Just typedef CORE_ADDR to bfd_vma.  Include bfd.h.
	If BFD64, make a LONGEST a BFD_HOST_64_BIT.
	* defs.h (longest_to_int): Don't depend on CC_HAS_LONG_LONG; instead
	always just check against INT_MIN and INT_MAX (this also fixes things
	if sizeof (long) > sizeof (int), e.g. Alpha).
	* config/pa/tm-hppa.h, config/i386/sun386.h, config/rs6000/tm-rs6000.h:
	Don't define LONGEST or BUILTIN_TYPE_LONGEST.
	* gdbtypes.h: Remove BUILTIN_TYPE_LONGEST and
	BUILTIN_TYPE_UNSIGNED_LONGEST.
	* language.h, c-lang.c, ch-lang.c, m2-lang.c: Remove longest_int
	and longest_unsigned_int.
	* value.h (struct value): Just align to LONGEST, rather than worrying
	about CC_HAS_LONG_LONG.
	* valarith.c (value_binop, _initialize_valarith): Figure out type
	ourself based on sizeof (LONGEST) rather than relying on
	BUILTIN_TYPE_LONGEST.  The point is that we don't depend on
	CC_HAS_LONG_LONG anymore.
	* valprint.c (val_print_type_code_int): Just call
	extract_unsigned_integer directly, rather than going through
	unpack_long.
	* printcmd.c (decode_format): Remove code which would sometimes
	change 'g' size to 'w' for integers.  print_scalar_formatted handles
	printing huge integers well enough, thank you.
1994-02-03 03:18:58 +00:00
Jim Kingdon
7bec77b47d * config/m88k/{tm-delta88.h,tm-delta88v4.h}, m88k-tdep.c:
Define IN_SIGTRAMP and backtrace correctly through signal handlers.
1994-02-01 22:17:29 +00:00
Jim Kingdon
14d7956255 * mips-tdep.c: Remove code which sets saved_regs from
init_extra_frame_info and put it in new function mips_find_saved_regs.
	(READ_FRAME_REG): Remove macro and replace uses with the expansion.
	* mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
	check if it is NULL and call mips_find_saved_regs if so.
1994-01-31 21:22:44 +00:00
Jim Kingdon
895efe6b57 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
* config/m68k/es1800.mt: Add comment.
	* remote-es.c: Comment out entire file until it can be fixed.
1994-01-29 17:13:42 +00:00
Jim Kingdon
9fdb3f7aad * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
* elfread.c (record_minimal_symbol_and_info),
	dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
1994-01-28 16:25:25 +00:00
Peter Schauer
ad9f5e78b8 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
Define for Solaris2.
1994-01-22 09:41:47 +00:00
Stu Grossman
8bf94f44bc * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
config/sparc/tm-sparclynx.h:  Move defs of FRAME_SAVED_I0/L0 to
	tm-sparc.h so they can be overridden if necessary.
1994-01-22 08:42:14 +00:00
Stu Grossman
d575ddc0ef * lynx-nat.c: Add Sparc support.
* sparcly-nat.c:  Remove.  It's useless.
	* config/sparc/nm-sparclynx.h:  Rewrite.
	* config/sparc/sparclynx.mh (NATDEPFILES):  Replace sparcly-nat.o
	with lynx-nat.o
	* config/sparc/tm-sparclynx.h:  Rewrite.
1994-01-22 01:58:55 +00:00
Jim Kingdon
6545c6a085 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
if N_SO_ADDRESS_MAYBE_MISSING is defined.
	* config/sparc/tm-sun4sol2.h: Define it.
1994-01-21 17:53:57 +00:00
Jeff Law
40df7e2729 * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
is not defined.

	* hppab-nat.c (call_ptrace): Delete redundant function.
	(kill_inferior, attach, detach, child_resume): Likewise.
	(child_xfer_memory): Likewise.

	* hppah-nat.c (call_ptrace): Delete redundant function.
	(kill_inferior, attach, detach, child_resume): Likewise.

	* config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.

	* config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.

	* config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.

	* config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): define.
	(CHILD_XFER_MEMORY): Define.
	(PT_*): Define so that generic infptrace.c code can be used.
1994-01-21 16:23:36 +00:00
Jeff Law
c7f3b703a3 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
reserved fields to hold a stub unwind entry type.  Fix typo.
        (stub_unwind_entry): New structure for raw stub unwind entries.
        (stub_unwind_types): The types of stubs we may encounter.
        (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
        * hppa-tdep.c (rp_saved): Use additional information provided
        by linker stub unwind descriptors.
        (frameless_function_invocation): Likewise.
        (frame_chain_valid): Likewise.
        * paread.c (compare_unwind_entries): New function for sorting
        unwind table entries.
        (read_unwind_info): Rewrite to remove dependency on host endianness.
        Read in data from the $UNWIND_END$ subspace which contains linker
        stub unwind descriptors.  Merge that data into the basic unwind
        table.
1994-01-18 04:04:36 +00:00
Jim Kingdon
44a09a68f2 * utils.c (request_quit): Re-establish signal handler regardless
of USG.

	* config/mips/xm-irix4.h: Define HAVE_TERMIOS.
1994-01-15 03:43:01 +00:00
Jim Kingdon
d253eb7aa0 * config/i386/xm-linux.h: Define HAVE_TERMIOS. 1994-01-14 16:41:35 +00:00
John Gilmore
eb5b74ca6c * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
(pop_frame):  Restore PC2 and LR0 from dummy frames.
(push_dummy_frame):  Save PC2 and LR0 into dummy frames.
(setup_arbitrary_frame):  Handle 3 args and set up real frames.
* config/a29k/tm-a29k.h (FRAME_NUM_ARGS):  Update comments.
(DUMMY_FRAME_RSIZE):  Add 2 longwords for PC2 and LR0.
(SETUP_ARBITRARY_FRAME):  Define.
1994-01-12 07:47:14 +00:00
Jim Kingdon
4d69cf576b * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START. 1994-01-11 20:15:55 +00:00
Jim Kingdon
166b44e41e Add alpha-nw.mt to things to keep 1994-01-11 04:14:32 +00:00
Jim Kingdon
6aaa61dec9 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
character filenames.
	* configure.in: Change accordingly.
1994-01-11 04:12:20 +00:00
Peter Schauer
f0d2557ca4 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET):  Define.
1994-01-07 21:02:39 +00:00
Stu Grossman
7f85a716b9 * config/alpha/alpha-netware.mt: New target support for Alpha
running Netware.
	* configure.in:  Add alpha-*-netware* target.
1994-01-04 23:43:28 +00:00
Jim Kingdon
9b70610b4e * target.h: Add enum target_waitkind, enum target_signal, and
struct target_waitstatus.  Change status argument to target_wait to
	be struct target_waitstatus * instead of int *.
	* target.h, infrun.c, all targets: Change type of signal arguments
	to resume(), proceed(), and target_resume() from int to enum
	target_signal.
	* All targets (*_wait, *_resume): Change accordingly.
	* infcmd.c (program_info, signal_command), throughout infrun.c,
	* fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
	* convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
	signal code stuff right with the new signals would be non-trivial).
	* inferior.h (stop_signal): Make it enum target_signal not int.
	* target.c, target.h (target_signal_to_string, target_signal_to_name,
	target_signal_from_name): New functions.
	* inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
	store_waitstatus): New functions.
	* procfs.c (procfs_notice_signals): Use them.
	* i960-tdep.c (i960_fault_to_signal): New function, to replace
	print_fault.
	* config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
1994-01-04 21:36:04 +00:00
Jim Kingdon
d568b76ab7 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION. 1994-01-03 02:48:10 +00:00
Jeff Law
e7386e3225 Add comment about breakpoint vector usage. 1993-12-27 04:52:47 +00:00
Jim Kingdon
f4f0d17487 * valops.c (call_function_by_hand, push_word), defs.h (push_word),
convex-xdep.c, m88k-nat.c, i386m3-nat.c, mips-tdep.c, mipsm3-nat.c,
	ns32km3-nat.c, remote-bug.c, m88k-tdep.c, remote-hms.c, remote-mips.c,
	config/gould/tm-np1.h, hppa-tdep.c (hppa_fix_call_dummy), remote-vx.c:
	Use REGISTER_SIZE, unsigned LONGEST, and
	{store,extract}_unsigned_integer, instead of sizeof
	(REGISTER_TYPE) and REGISTER_TYPE.
	* All tm.h files: Change REGISTER_TYPE to REGISTER_SIZE.
	* hppa-tdep.c (pa_print_fp_reg): Remove unused variable val.

	* Makefile.in (ALLDEPFILES): Remove i386ly-nat.c and m68kly-nat.c.
	Add lynx-nat.c.
1993-12-26 18:10:22 +00:00
Jim Kingdon
04f566a356 * defs.h: Move definitions of TARGET_*_BIT after include of tm.h.
The old way (using #undef in tm.h) was ugly and asking for
	trouble, because it makes it possible for some file to use the
	wrong definition.  Move definition of HOST_CHAR_BIT after definition
	of TARGET_CHAR_BIT.
	* config/alpha/tm-alpha.h, config/h8300/tm-h8300.h,
	config/h8500/tm-h8500.h, config/z8k/tm-z8k.h: Don't undef TARGET_*_BIT
	before defining them.
1993-12-25 18:44:22 +00:00
Jeff Law
27405a282e * config/m68k/nm-hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.
* config/m68k/tm-hp300bsd.h (REMOTE_BPT_VECTOR): Define.

        * config/m68k/tm-m68k.h (REMOTE_BPT_VECTOR): Allow targets to
        override.
        (REMOTE_BREAKPOINT): Likewise.
1993-12-16 21:10:24 +00:00
Steve Chamberlain
e34f4a4305 * config/z8k/tm-z8k.h (BIG): is now sim_z8001_mode.
* config/z8k/z8ksim.mt (TDEPFILES): Add remote-sim.o to list.
1993-12-12 00:07:12 +00:00
Steve Chamberlain
b4d3d0e5de * config/sh/sh.h (NOP): Define NOP insn. 1993-12-12 00:05:54 +00:00
Steve Chamberlain
3b5b507559 * config/h8500/tm-h8500.h (REGISTER_BYTES, REGISTER_BYTE,
REGISTER_NAMES): update to new view.  (INIT_EXTRA_FRAME_INFO): No
	extra frame info now.
1993-12-12 00:05:25 +00:00
Steve Chamberlain
34f07efe01 * config/h8300/tm-h8300.h (BREAKPOINT): Insn changed to sleep.
(DECP_PC_AFTER_BREAK): Now is 0.
1993-12-12 00:03:31 +00:00
Ian Lance Taylor
916b904d7e * config/mips/idt.mt: Use tm-idt.h instead of tm-bigmips.h.
* config/mips/idtl.mt: Use tm-idtl.h instead of tm-mips.h.
	* config/mipos/tm-idt.h, config/mips/tm-idtl.h: New files; use
	different BREAKPOINT value for IDT.
1993-12-08 05:06:48 +00:00
Ian Lance Taylor
e03c0cc670 Added Irix 5 support.
* configure.in (mips-sgi-irix5*): New host and target.  Use irix5
	for both.
	* config/mips/irix5.mh, config/mips/irix5.mt,
	config/mips/xm-irix5.h, config/mips/nm-irix5.h,
	config/mips/tm-irix5.h, irix5-nat.c: New files for Irix 5 support.
	* mdebugread.c: New file, split out of mipsread.c.  Added
	elfmdebug_build_psymtabs routine.  Added some checks on external
	symbols.  Changed code to keep ecoff_debug_info and
	ecoff_debug_swap structs in the psymtab and in global pointers
	rather than retrieving them from the bfd.  Also changed to keep
	the pending list with the psymtab rather than the objfile (each
	psymtab for a single objfile points to the same pending list).
	* mipsread.c: Bulk of file moved into mdebugread.c, leaving just
	the sym_fns.
	* Makefile.in (SFILES): Added mdebugread.c.
	(OBS): Added mdebugread.o.
	(mdebugread.o): New target.
	* symfile.h: Declare mdebug_build_psymtabs and
	elfmdebug_build_psymtabs.
	* elfread.c (struct elfinfo): Added mdebugsect field.
	(elf_locate_sections): Remember location of .mdebug section.
	(elf_symfile_read): Call elfmdebug_build_psymtabs on .mdebug
	section.
	* infrun.c (AT_FUNCTION_START): Set to 0 if not already defined.
	(wait_for_inferior): Use AT_FUNCTION_START if it is defined to see
	if PC is at the start of a function.
	* mips-tdep.c (read_next_frame_reg): Use SIGFRAME_REG_SIZE, and
	give it a default definition.
	(mips_skip_prologue): Skip instructions which initialize $gp
	register.
	(in_sigtramp): New procedure, moved in from mipsread.c.
	* config/mips/tm-mips.h: Declare in_sigtramp.
1993-12-06 17:31:05 +00:00