Commit Graph

1258 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
Jim Kingdon 6b27ebe851 * symfile.{c,h} (generic_load): New function.
remote{,-nindy,-eb,-mips}.c: Use it.
1993-06-08 19:48:15 +00:00
Stu Grossman a5d6157038 * Makefile.in (depend): More sed gubbish to deal with
../bfd/bfd.h being generated during the build.
	* depend:  Re-done with corrected makefile.
1993-06-08 03:10:34 +00:00
Fred Fish 6f4a4fbb1d * Makefile.in (BFD_SRC_DIR): Renamed def and usages from BFD_DIR.
* Makefile.in (BFD_OBJ_DIR):  New definition for the bfd build
	directory to find automatically generated header files and library.
	* Makefile.in (BFD_LIB):  Use BFD_OBJ_DIR.
	* Makefile.in (LINTFLAGS):  Include BFD_OBJ_DIR.
	* Makefile.in (saber_gdb):  Include BFD_OBJ_DIR.
	* Makefile.in (depend):  Include BFD_OBJ_DIR in gcc args.
	* Makefile.in (paread.o, xcoffexec.o):  Remove, now in depend.
	* depend, alldeps.mak:  Rebuild after Makefile.in changes.
1993-06-07 23:41:44 +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 452b4b001f * ser-go32.c: Clean up lots of compilation nits. 1993-06-04 00:38:04 +00:00
Stu Grossman e835b5e7fa * Patches from Jeffrey Law <law@cs.utah.edu>.
* hppab-nat.c: Eliminate unnecessary ifdefs for
	FETCH_INFERIOR_REGISTERS, CANNOT_FETCH_REGISTER, and
	CANNOT_STORE_REGISTER.
	(fetch_register): Delete code to handle CANNOT_FETCH_REGISTER.
	* hppa-pinsn.c: Support 'I', 'J', and 'K' in output
	templates for 1.1 FP computational instructions.
1993-06-03 23:44:24 +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
Stu Grossman 3af7fb94af * target.c (target_read_memory_partial): Don't deref errnoptr
when checking for null pointer.
1993-06-03 10:36:39 +00:00
John Gilmore 2b5773496a * remote-es1800.c: Fix typo.
.Sanitize:  Add comments about what's getting deliberately ignored.
1993-06-03 02:59:50 +00:00
Fred Fish 68feeeedb7 * target.c (target_read_memory_partial): Like target_read_memory,
but does partial reads, such as reads that bump into the end of
	the address space.
	* target.h (target_read_memory_partial):  Add prototype.
	* valprint.c (PRINT_MAX_DEFAULT):  New define, initial value 200.
	* valprint.c (val_print_string):  Complete rewrite to fix bug with
	bumping into end of memory, avoiding unnecessarily long reads, and
	fixing bug when print_max is set to 0 (unlimited print length).
	* valprint.c (_initialize_valprint):  Use PRINT_MAX_DEFAULT to
	initialize print_max.
1993-06-02 04:57:17 +00:00
Rob Savoye c112834044 * configure.in: Add support for rom68k and bug boot monitors. 1993-06-02 00:15:39 +00:00
Jim Kingdon 6119aeebea * printcmd.c (print_scalar_formatted): Print integers bigger than
LONGEST in hex no matter how big, and no matter what the format
	and size.
1993-05-31 21:09:04 +00:00
Jim Kingdon 36bcda7958 * stabsread.c (read_type): Skip type attributes if present. 1993-05-31 20:14:59 +00:00
Jim Kingdon 574a2a49b7 * stabsread.c (read_huge_number): Don't accept '0' + radix as part
of number, just through '0' + radix - 1.
1993-05-31 18:08:56 +00:00
Fred Fish 8f1cc6c6ff * Makefile.in (SER_HARDWIRE): Temporarily comment out ser-tcp.o. 1993-05-31 03:40:06 +00:00
Fred Fish c701c14c41 * {dbxread.c, dwarfread.c} (read_ofile_symtab): Rewrite to take
single parameter, the pointer to the partial symtab, rather than
	a bunch of args that are derived from the partial symtab.  Change
	prototypes and callers to match.
1993-05-31 00:21:41 +00:00
Fred Fish 2707b48a61 * dbxread.c (read_ofile_symtab): Remove "#if 1" around code to
set demangling style automatically.
	* defs.h (CPLUS_MARKER):  Clarify comment that this is only for
	GNU C++, not C++ in general.
	* symtab.h (general_symbol_info):  Simplify by eliminating one
	structure level for the language dependent info.
1993-05-30 22:41:52 +00:00
Fred Fish 86e3a5e40f * c-typeprint.c (c_type_print_base): Avoid dereferencing NULL
names for TYPE_CODE_STRUCT and TYPE_CODE_UNION types.
	TYPE_CODE_ENUM was already testing for this.
1993-05-30 00:03:59 +00:00
Stu Grossman 38dc5e123f * Makefile.in: Add new file ser-tcp.c.
* defs.h (memcmp):  Add decl for memcmp to #ifndef MEM_FNS_DECLARED.
	* findvar.c (write_register):  See if we are writing back the same
	value that's already in the register.  If so, don't bother.
	* remote.c (putpkt, getpkt):  Improve handling of communication
	problems.
	* ser-go32.c:  Prototype it to death.  Update serial_ops and add
	dummy routines where appropriate.
	* ser-tcp.c:  New module to implement serial I/O via TCP
	connections.
	* ser-unix.c:  Clean up getting/setting of tty state.  Get rid of
	SERIAL_RESTORE, add SERIAL_{GET|SET}_TTY_STATE interfaces.
	* serial.c:  Add start of support for connect command.
	(serial_open):  Distinguish between tcp and local devices.
	* serial.h (struct serial_ops):  Get rid of restore, add
	get_tty_state and set_tty_state.  Define protoypes and macros for
	this mess.
	* gdbserver/remote-utils.c:  Add tcp support.  (readchar):  Do
	some real buffering.  Handle error conditions gracefully.
	* gdbserver/remote-inflow-sparc.c:  Update to remote-inflow.c
	(Lynx), remove lots of cruft.
1993-05-29 01:33:36 +00:00
David D. Zuhn 633c8b0a9d * printcmd.c (print_address_symbolic): turn this into an assigment
instead of an initialization (many compilers don't accept
	structure initialization).
1993-05-29 00:26:49 +00:00
Jim Kingdon 860b4da38b * xcoffread.c (read_xcoff_symtab): If several program csects in one
source file, give them all the name of the source file, rather than
	the 2nd and subsequent ones having NULL names.
1993-05-27 22:06:12 +00:00
Peter Schauer b7ccd8e069 * printcmd.c (print_address_symbolic): Append source filename and
linenumber of the symbol if print symbol-filename is on.
	(initialize_printcmd):  `set print symbol-filename'.
1993-05-27 13:19:26 +00:00
Stu Grossman 5fa46c427a * configure.in: Add config for Lynx target. Configure gdbserver
only for Lynx.  Re-do selective configuration of sparclite.
1993-05-26 20:55:47 +00:00
Stu Grossman 185a1705bb blah blah blah 1993-05-26 20:48:44 +00:00
Jim Kingdon 59d69506fb * stabsread.c (define_symbol, case 't'): Only set the name if it
is not a pointer type.

	* stabsread.c (define_symbol): Clean up logic; move the read_type
	calls to inside the switch statement (this improves the error
	handling).
1993-05-26 17:17:02 +00:00
Jim Kingdon 3a594d72e5 * mipsread.c (parse_symbol, parse_partial_symbols): Deal with Fortran
common blocks.
1993-05-26 15:33:07 +00:00
Jim Kingdon 43795ece80 * printcmd.c (print_formatted, case 'i'): Pass a tab to wrap_here.
* source.c (line_info): Change "pc" to "address" in messages and
	use print_address for addresses.
1993-05-26 04:56:02 +00:00
Jim Kingdon 2f2a70e585 * source.c (line_info): If we don't find a symtab, print more useful
output, including the symbolic address.
1993-05-26 04:29:38 +00:00
Jim Kingdon b9298844e5 * source.c (line_info): If --fullname, display the source.
(identify_source_line), callers: Take pc as argument, rather than
	assuming innermost frame (emacs doesn't use this, so no one ever
	noticed).
	* symtab.h: Declare frame_file_full_name.
	* main.c: Don't.
1993-05-26 03:27:32 +00:00
Brendan Kehoe aea2312bde * breakpoint.c (catch_command_1): Fix typo in error msg. 1993-05-25 22:31:38 +00:00
Ken Raeburn 6b346f512e elf, bfd_vma-cast changes 1993-05-25 20:22:09 +00:00
Jim Kingdon ea753d03d6 * stabsread.c: Remove all uses of error(). Make error_type and
read_type_number static.
	(define_symbol): Don't try to deal with a missing symbol
	descriptor which isn't followed by digit, '(', or '-'.
	* stabsread.h: Don't declare read_type_number here.
	* gdbtypes.h: Don't declare error_type here.
	* xcoffread.c: Remove NO_TYPEDEFS code.
1993-05-25 19:39:41 +00:00
Ian Lance Taylor 619ccb2426 * mips-tdep.c: Removed #include of many header files, and #define
of MIPSMAGIC; no longer used.
1993-05-25 16:37:53 +00:00
Jim Kingdon 6fe90fc83f * Many places: replace "the inferior" in messages with "the program"
or "the program being debugged".
	* inflow.c (try_writing_regs): Remove; it's been #if 0'd forever
	and I'm getting sick of maintaining it.
1993-05-25 16:22:41 +00:00
Jim Kingdon 30ffb593f8 * config/i386/linux.mh: Don't use \ newline; the awk scripts don't
support it.

	* config/i386/go32.mh: Define SER_HARDWIRE.
	* Makefile.in: Define SER_HARDWIRE.
	(DEPFILES): Use it.
	(alldeps.mak): Add SER_HARDWIRE.
	Remove all references to ser-hardwire.{c,o}.
	* configure.in: Remove all ser_hardwire and gdb_serial_driver stuff.
1993-05-25 15:47:28 +00:00
Peter Schauer 1b71de8ea4 * sparc-nat.c (store_inferior_registers): Fill in all members of
inferior_fp_registers by reading them from the inferior before
	modifying and writing them back.
	Fixes unexplainable inferior FP exceptions after calls to the inferior
	or setting of floating point registers.
	* mips-tdep.c (mips_skip_prologue):  Skip move of argument register
	to register which is generated by gcc-2.4.
1993-05-25 06:52:54 +00:00
Ken Raeburn 3b17ee1bad try to make hppa opcode table, updated for gas, still be compatible with gdb 1993-05-25 04:46:09 +00:00
Jim Kingdon 87c942a80c * mipsread.c (parse_symbol): Deal with scVar and scVarRegister.
* symtab.h: Comment that LOC_REGPARM_ADDR can be call by reference.
1993-05-24 16:45:16 +00:00
Jim Kingdon 8789d972a3 * c-typeprint.c (c_type_print_base): Don't print typedef'd names
as struct, union, or enum tags.
1993-05-24 15:44:12 +00:00
Peter Schauer 8537c754ba * symmisc.c (dump_msymbols): Avoid gdb coredump with stripped
executable.
1993-05-24 08:11:47 +00:00
Jim Kingdon 2632d6dff0 * infrun.c (wait_for_inferior),
infcmd.c (program_info, signal_command):  Use symbolic signal names.
1993-05-22 22:46:46 +00:00
Jim Kingdon 6b82a761cb * inftarg.c (child_wait): Deal with EINTR and include message from
strerror if printing an error message.

	* main.c (command_line_input): Use STOP_SIGNAL not SIGTSTP.
1993-05-22 20:49:04 +00:00
Jim Kingdon f52bde21f9 * stabsread.c: Remove most uses of lookup_fundamental_type.
(define_symbol): Use read_type for type of enum constant,
	not just read_type_number.  Also don't call error().
	(define_symbol): For unrecognized constant type, one complaint (the
	one from error_type) is	enough.  Don't make our own in addition.
	(define_symbol): Don't treat an N_FUN 'R' as a prototype.
	* gdbtypes.h: Doc fixes.
1993-05-22 19:20:37 +00:00
Peter Schauer 7cf92dd250 Fix stack unwinding through _sigtramp on Irix. These patches are from
Paul Flinders <ptf@delcam.co.uk>.
	* mipsread.c (fixup_sigtramp): Find _sigtramp on Irix even when the
	executable uses sigvec.
	* mips-tdep.c (read_next_frame_reg): Allow tm-file to override
	sigcontext offsets.
	* config/mips/tm-irix3.h: Add sigcontext offsets for Irix.
1993-05-22 10:34:47 +00:00
Peter Schauer 101b7f9ca5 * infrun.c (wait_for_inferior): Clear stop_signal if it should not
be passed to the inferior to make "handle <signal> nopass nostop" work.
1993-05-22 07:40:40 +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
Jim Kingdon e23a689677 ISC changes 1993-05-21 22:17:31 +00:00
Jim Kingdon 5e27c0544a fix typo 1993-05-21 20:44:43 +00:00
Jim Kingdon b646b43826 * complaint.c: Make sure all complain() pass the address of the struct.
* xcoffread.c: Make sure all struct complaints are static not auto.
1993-05-21 20:43:16 +00:00