Commit graph

1215 commits

Author SHA1 Message Date
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
Jim Kingdon
7326242025 * xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol. 1993-05-21 14:08:17 +00:00
Jim Kingdon
2c6af8c021 x 1993-05-20 00:37:32 +00:00
K. Richard Pixley
ee3d350d13 fixed typo in tm-m68k.h 1993-05-19 22:48:25 +00:00
Stu Grossman
f3fe87c79e * config/pa/nm-hppab.h: Comment PTRACE_ARG3_TYPE. 1993-05-19 22:43:06 +00:00
Jim Kingdon
5b40415c63 * Makefile.in (INSTALLED_LIBS): New variable. 1993-05-19 17:56:18 +00:00
Jim Kingdon
94d5034070 * main.c (quit_command): In the "quit anyway?" message, tell the user
whether we are planning to detach or kill the program.
	* config/{mips,nind,udi,unix,vx}-gdb.exp: Look for "Quit anyway.*?"
	not just "Quit anyway?".
1993-05-19 02:17:38 +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
15f7860275 * infcmd.c (read_pc): Doc fix. 1993-05-19 01:25:43 +00:00
Jim Kingdon
511933e73b * printcmd.c (print_address_symbolic): Use %u not %d for offset. 1993-05-19 01:20:09 +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
7f8253c71c * infptrace.c: Remove unused KERNEL_U_ADDR_HPUX code. 1993-05-18 23:53:28 +00:00
Jim Kingdon
b1b4a89ec3 * infcmd.c (step_1): Fix poorly worded error message. 1993-05-18 23:42:16 +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
31d16514c8 * Makefile.in (depend): Put "${srcdir}" in generated dependencies
if srcdir is not ".".
	Also put in -I${BFD_DIR} or -I${READLINE_DIR} for files which need it.
	(INCLUDE_CFLAGS):  Remove BFD_DIR and READLINE_DIR.
	* depend:  Update to latest automatically built version.
1993-05-18 22:38:12 +00:00
Fred Fish
6e50aeb481 * ChangeLog, ChangeLog-92: Split ChangeLog at 1993.
* Makefile.in (NONSRC):  Add ChangeLog-92
1993-05-18 15:16:01 +00:00
Jim Kingdon
f49cf58940 * findvar.c ({read,write}_register): Use REGISTER_RAW_SIZE
not typo RAW_REGISTER_SIZE.

	* frame.h, inferior.h: Doc fixes.
1993-05-18 15:06:47 +00:00
Stu Grossman
35247ccd31 * findvar.c (write_register): Add sanity check for register size.
(read_register):  Fixup sanity check for register size to be
	consistent with write_register().
1993-05-17 22:48:07 +00:00
K. Richard Pixley
d968d5b48f back out malloc/xmalloc patch 1993-05-14 22:14:45 +00:00
Fred Fish
377f53d2a9 * Makefile.in (VERSION): Bump to 4.9.1 after release and cvs
tagging.
1993-05-12 19:59:57 +00:00
Fred Fish
965a33af59 * README: Update known bugs to include the Solaris bug that
leaves core dumps in the current directory when restarting the
	inferior with "run".  Expand on the testsuite information.
1993-05-11 17:45:22 +00:00
John Gilmore
af34c75d69 Remove CVS-merge trash from ChangeLog. 1993-05-11 07:26:45 +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
Fred Fish
0a4a0f097b * README, NEWS: Update for gdb 4.9 release. 1993-05-11 03:45:47 +00:00
John Gilmore
57ffffe3fe * ch-exp.y (MAX, MIN): Rename to MAX_TOKEN, MIN_TOKEN.
* target.c (MIN):  #undef before defining.
1993-05-11 02:49: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
Ian Lance Taylor
1edc5cd26d * hppa-tdep.c (hppa_push_arguments): Allocate correct amount of
memory.
1993-05-10 22:30:34 +00:00
Fred Fish
f39a2631d9 * ch-exp.y (start): Apply work-around to avoid bison warning. 1993-05-10 20:18:05 +00:00
Fred Fish
0b81fc4394 * Makefile.in (BISON): Remove double quotes around BISON
definition when bison is used.
1993-05-10 00:53:27 +00:00
Fred Fish
8f59e92be9 * configure.in (hppa*-hp-bsd): Change to hppa*-hp-bsd*
* configure.in (hppa*-hp-hpux):  Change to hppa*-hp-hpux*
	* configure.in (m68*-hp-bsd):  Change to m68*-hp-bsd*
	* configure.in (m68*-hp-hpux):  Change to m68*-hp-hpux*
	* configure.in (hppa*-*-bsd):  Change to hppa*-*-bsd*
	* configure.in (hppa*-*-hpux):  Change to hppa*-*-hpux*
	* configure.in (m68*-hp-bsd):  Change to m68*-hp-bsd*
	* configure.in (m68*-hp-hpux):  Change to m68*-hp-hpux*
1993-05-10 00:15:12 +00:00
Fred Fish
67d2bd1a4b * Makefile.in (VERSION): Bump to 4.8.6. 1993-05-09 14:26:25 +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
Peter Schauer
1adf2ba9db * coffread.c (read_coff_symtab): Don't fclose stream as it is no
longer opened twice.
1993-05-08 08:41:41 +00:00
Jim Kingdon
7a758f71eb * solib.c (clear_solib): Don't close bfd if it is NULL. 1993-05-07 04:34:01 +00:00
Fred Fish
34b70237d2 * core.c (dis_asm_read_memory): Cast second arg of
target_read_memory to "char *".
	* breakpoint.c (watchpoint_check):  Change arg type from PTR to
	"char *", to match other functions called by catch_errors().
1993-05-07 04:02:16 +00:00
Stu Grossman
2c298c0922 * More patches from Jeffrey Law (law@cs.utah.edu).
* gdb/config/pa/tm-hppah.h (millicode_start, millicode_end):
	Delete unnecessary declarations.
1993-05-06 22:51:32 +00:00
Stu Grossman
9e15da4ac4 * ser-unix.c (wait_for): Use VTIME to do timeouts instead of
poll() for termio{s}.
1993-05-06 22:17:10 +00:00
Jim Kingdon
dfa592fb5a * i386-tdep.c (i386_frame_num_args): Always return -1. 1993-05-06 18:10:16 +00:00
Stu Grossman
f45e781f14 Fix directory on edit log. 1993-05-05 23:53:09 +00:00
Stu Grossman
8fa7488059 * 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/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/tm-hppah.h (SAVED_PC_AFTER_CALL): Delete private
	definition and use the common one in tm-hppa.h.
1993-05-05 23:52:10 +00:00
Stu Grossman
4b01383bcd * Patches from Jeffrey Law <law@cs.utah.edu>.
* gdb/hppa-tdep.c (frame_chain_valid): If "use_unwind" is true, then
	use unwind descriptors to determine if the frame chain is valid.
1993-05-05 22:39:23 +00:00
Stu Grossman
b227992a76 * Patches from Jeffrey Law <law@cs.utah.edu>.
* gdb/hppa-tdep.c (find_dummy_frame_regs):  Rework so that
	it does not assume %r4 is the frame pointer.
1993-05-05 22:35:32 +00:00
Stu Grossman
68c8d698d4 * Patches from Jeffrey Law <law@cs.utah.edu>.
* gdb/hppa-pinsn.c (print_insn): Handle 'r' and 'R' for break, rsm,
	and ssm instructions.
	* gdb/hppa-tdep.c (extract_5r_store, extract_5R_store): New
	helper functions for print_insn.
1993-05-05 22:26:57 +00:00
Stu Grossman
a34d4bc178 * Patches from Jeffrey Law <law@cs.utah.edu>.
* gdb/hppa-tdep.c (gcc_p, hpux_cc_p): Delete unused functions.
1993-05-05 22:23:07 +00:00