Commit graph

1314 commits

Author SHA1 Message Date
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
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
Jim Kingdon
a7edcb254c * Makefile.in (depend): Don't include command for *.tab.c. 1993-05-05 03:32:02 +00:00
Fred Fish
d39fbfe3b9 * Makefile.in (VERSION): Bump to 4.8.5
* Makefile.in (INCLUDE_CFLAGS):  Add BFD_DIR and READLINE_DIR
	directories to include search path.
	* Makefile.in (CLIBS, CDEPS, ADD_FILES, ADD_DEPS):  Clean up
	whitespace.
	* Makefile.in (depend):  For gcc -MM line, use INTERNAL_CFLAGS
	* Makefile.in (main.o, dbxread.o, coffread.o, mipsread.o,
	elfread.o, dwarfread.o, stabsread.o, xcoffread.o, xcoffexec.o,
	xdr_ld.o, xdr_rdb.o, nindy.o, Onindy.o, ttybreak.o, ttyflush.o,
	udr.o, udip2soc.o):  Remove explicit rules, use the ones that
	are automatically generated in "depend".
	* Makefile.in (paread.o):  Document why a dependency doesn't get
	automatically generated in "depend" and leave this explicit rule
	in for now (FIXME).
	* depend:  Update to latest automatically generated version.
1993-05-05 02:48:28 +00:00
Jim Kingdon
67240bb8bd Doc fix 1993-05-04 23:16:27 +00:00
Jim Kingdon
5b8462fa63 * Makefile.in (depend): Include $(CC) command in generated output. 1993-05-04 19:25:24 +00:00
K. Richard Pixley
3ed8101170 * nindy-share/Onindy.c, nindy-share/nindy.c: convert malloc calls
to xmalloc.  Include defs.h.  Rename local macro from
	  REGISTER_BYTES to NINDY_REGISTER_BYTES to avoid conflict with
	  defs.h.
1993-05-04 06:40:01 +00:00
Fred Fish
5287eacdc2 * Makefile.in (NONSRC): Remove ${srcdir}/putenv.c.
* Makefile.in (SFILES):  Add ${srcdir}/putenv.c.
	* depend:  Update to latest automatically built version.
1993-05-04 05:57:03 +00:00
Stu Grossman
f202f77810 * sparclite/Makefile.in: Create default target that does nothing
in order to force user to build by hand.
1993-05-04 02:42:36 +00:00
Stu Grossman
1e8005d0f0 * sparclite/Makefile: Remove. It's not necessary anymore. 1993-05-04 02:31:44 +00:00
Stu Grossman
9775789df6 * ser-unix.c (wait_for): New routine to handle read timeouts,
etc.  Uses poll() if HAVE_TERMIO[S] is defined, select() otherwise.
1993-05-04 02:22:14 +00:00
Ian Lance Taylor
588cca9021 * mips-pinsn.c (print_insn): Return value. 1993-05-03 20:55:40 +00:00
Fred Fish
d8aaff820c * Makefile.in (NONSRC): Add 29k-share/README.
* Makefile.in (HFILES):  Add 29k-share/udi/udiids.h.
1993-05-02 22:27:05 +00:00
Fred Fish
ebd99d5409 * defs.h (UINT_MAX, LONG_MAX, INT_MAX, INT_MIN): Replace hex
constants with slightly more portable definitions (still depends
	on 2's complement arithmetic though).
	* config/i386/nm-linux.h:  Define NO_SYS_REG_H for no <sys/reg.h>.
	* i386v-nat.c (sys/reg.h):  Conditionalize include on
	NO_SYS_REG_H.  Linux doesn't have <sys/reg.h>.
	* ser-unix.c (termio.h):  Include <termio.h> like other files that
	include termio.h, not <sys/termio.h> which may not exist (on
	linux for example).
1993-05-02 18:57:03 +00:00
Fred Fish
9b25bb09ce * valprint.c (print_longest): Change format parameter from a
'char' to an 'int'.  We can't have 'char' parameters with the
	current coding style, where we mix prototypes with pre-ANSI
	style declarations.
	* value.h (print_longest):  Change format parameter in prototype
	from a 'char' to an 'int'.
1993-05-01 23:09:11 +00:00
Peter Schauer
23654371e6 Fix typo in last ChangeLog message. 1993-05-01 09:59:16 +00:00
Peter Schauer
dea149ce8d * 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.
	* irix4-nat.c (fill_fpregset): Fix bug with indexing into fpregsetp.
1993-05-01 09:55:01 +00:00
Stu Grossman
2f1c04d17d * 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:19:43 +00:00
Steve Chamberlain
c7cb90647b * configure.in: Match z8k-*-sim for z8000.
* config/h8500/tm-h8500.h, h8500-tdep.c: Lint.
	* remote-hms.c: Update to use new serial protocol.
1993-05-01 00:50:27 +00:00
K. Richard Pixley
5084717f91 * mips-tdep.c: remove include of sys/dir.h. Doesn't seem
necessary and Solaris doesn't have it.
1993-05-01 00:41:53 +00:00
K. Richard Pixley
0139c441ea do not echo recursion lines 1993-05-01 00:34:05 +00:00
K. Richard Pixley
8317b39ff3 * udip2soc.c (UDIConnect): replace union wait with int. 1993-05-01 00:31:02 +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
K. Richard Pixley
5385e525fe * remove-udi.c (udi_wait): ifdef around SIGLOST usage. Eg,
Solaris doesn't have SIGLOST so use SIGURG as a backup.
1993-05-01 00:06:46 +00:00
Jim Kingdon
eca2963437 * ser-unix.c [USE_{TERMIO,ALARM}_TIMEOUT]: New code to deal with
systems lacking select().
1993-04-30 22:15:28 +00:00
Jim Kingdon
db7c818b4d * Makefile.in (TAGS): Doc fix. Deal with empty DEPFILES. 1993-04-30 22:08:46 +00:00
Jim Kingdon
8d57a263f5 doc fix 1993-04-30 18:06:32 +00:00
Fred Fish
496ca67cbd * alldeps.mak, depend: Update with latest automatically built
versions.
1993-04-30 17:08:02 +00:00
Fred Fish
d5f608a465 * Makefile.in (SFILES): Add ser-unix.c and ser-go32.c. 1993-04-30 06:44:59 +00:00
Fred Fish
97e72c06bd * Makefile.in (make-proto-testsuite.dir): New target to make
prototype testsuite tree.
	* Makefile.in (TAGS):  Remove use of DEPFILES, it may be empty.
	In any case, it is a subset of the ALLDEPFILES list, which is
	part of SOURCES, which is part of TAGFILES, so it's redundant.
1993-04-30 06:28:30 +00:00
Fred Fish
3717e95b5d Bump version to 4.8.4 for gdb 4.9 prerelease testing. 1993-04-29 19:05:22 +00:00
Jim Kingdon
ff580c7b96 * stabsread.c (define_symbol): If unrecognized constant type,
complain() not error().
1993-04-29 17:19:11 +00:00
Fred Fish
f43aec2e91 * infptrace.c: Add missing close paren to test for
FIVE_ARG_PTRACE defined.
1993-04-29 16:09:33 +00:00
Fred Fish
7efb57c33d * defs.h (CC_HAS_LONG_LONG): Set up to define CC_HAS_LONG_LONG
when compiling with gcc, but disable it for now.  See comment.
	* defs.h (LONGEST):  Define as either "long" or "long long"
	based on CC_HAS_LONG_LONG.
	* defs.h (longest_to_int):  Use CC_HAS_LONG_LONG to control
	how longest_to_int is defined.
	* c-valprint.c (c_val_print):  Call print_longest.
	* expprint.c (dump_expression):  Use PRINTF_HAS_LONG_LONG
	instead of LONG_LONG.
	* {printcmd.c, gdbtypes.h} (LONG_LONG):  Replace usages with
	CC_HAS_LONG_LONG.
	* printcmd.c (print_scalar_formatted):  Call print_longest
	and let it figure out what to do for PRINTF_HAS_LONG_LONG.
	* typeprint.c (print_type_scalar):  Call print_longest and let
	it figure out what to do for PRINTF_HAS_LONG_LONG.
	* valprint.c (val_print_type_code_int):  Call print_longest
	and let it figure out what to do for PRINTF_HAS_LONG_LONG.
	* stabsread.c (LONG_LONG):  Replace usages with CC_HAS_LONG_LONG.
	* value.h (struct value):  Replace usage of LONG_LONG with
	CC_HAS_LONG_LONG.
	* value.h (print_longest):  Add prototype.
	* values.c (LONG_LONG):  Replace usages with CC_HAS_LONG_LONG.
	* values.c (unpack_double):  Collapse code that was unnecessarily
	dependent on CC_HAS_LONG_LONG.  Use LONGEST instead of direct types.
	* values.c (value_from_longest):  Remove dependency on
	CC_HAS_LONG_LONG and just use LONGEST.
	* solib.c (solib_map_sections):  Use bfd_get_filename
	to access filename field.
	* solib.c (clear_solib):  Save filename and free it later, after
	bfd_close, since bfd_close may reference it.  Use bfd_get_filename
	to access the field.
	* config/convex/xm-convex.h (LONG_LONG):  Replace with
	CC_HAS_LONG_LONG.  Add define for PRINTF_HAS_LONG_LONG.
	* doc/gdbint.texinfo (LONG_LONG):  Replace with CC_HAS_LONG_LONG.
	Add PRINTF_HAS_LONG_LONG references.
1993-04-29 07:07:39 +00:00
Jim Kingdon
31b567269a * inflow.c (kill_command), infcmd.c (attach_command),
remote.c (remote_interrupt_twice): In messages for the user, call it
	"the program" or "the program being debugged" not "the inferior".
1993-04-28 23:34:24 +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
Peter Schauer
d8f233201b * ch-exp.y (yylex): Don't STREQ with simplename if it is NULL. 1993-04-28 20:36:48 +00:00
Jim Kingdon
08bb261766 * config/sparc/xm-sun4os4.h [__STDC__]: Don't use MALLOC_INCOMPATIBLE. 1993-04-28 19:17:50 +00:00
Roland Pesch
caa53d6d61 changes 1993-04-28 18:48:20 +00:00
Peter Schauer
212e10cfdb * valops.c (search_struct_field): Fix gdb core dump with incomplete
stabs info.
1993-04-28 18:41:59 +00:00
Jim Kingdon
ebdb9ade17 * remote.c: Change timeout to 2.
(remote_open): Use unpush_target not remote_close.
	(remote_resume): If siggnal != 0, give warning not error().
	(remote_wait, remote_interrupt, remote_interrupt_twice):
	If we get two interrupts, let the user get out if they want.
	(remote_{kill,mourn}): New functions.
	i386-stub.c (handle_exception, case 'k'): Don't BREAKPOINT.
1993-04-28 17:48:00 +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
71607f9d62 * Remote targets (mourn): Call unpush_target. 1993-04-28 15:33:20 +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
Jim Kingdon
ab425a9ba0 * README: Move most stuff about hacking GDB to doc/gdbint.texinfo.
(Known bugs): Remove AIX bugs, revise SPARC struct bug description.
1993-04-27 22:59:03 +00:00
Peter Schauer
f661c4ca08 * expprint.c (print_subexp): Fix bug with OP_SCOPE operator output. 1993-04-27 20:46:25 +00:00
Jim Kingdon
ebe8362f90 * remote-vx.c (net_connect): Allow numeric IP address for host. 1993-04-27 17:27:24 +00:00
Steve Chamberlain
9faacb925f Support for Hitachi SH 1993-04-27 01:17:32 +00:00
Jim Kingdon
9aa31e91d6 * rs6000-tdep.c (branch_dest): Deal with stepping through system call. 1993-04-26 16:44:03 +00:00
Peter Schauer
24d45a6319 * valops.c (value_cast): A cast might also change the object
representation in C++.
	* dbxread.c (end_psymtab): Copy subpst read_symtab function from pst
	to get the proper read_symtab function when called from mipsread.c.
	* mipsread.c (mipscoff_psymtab_to_symtab, psymtab_to_symtab_1):
	Set cur_bfd in psymtab_to_symtab_1 as CURBFD(pst) is invalid
	for dummy psymtabs, inhibit processing of dummy psymtabs.
1993-04-25 09:33:49 +00:00
Jim Kingdon
87237c5250 * Changes from (or inspired by) AMD:
* remote-udi.c (udi_attach): Assignments to Space and Offset were
	switched, fix it.
	(udi_wait): Make error message (UDIGetStdout) match error.
	(udi_wait): Handle UDIStdinNeeded.
	* command.c [CANT_FORK]: Use system().
	* utils.c (prompt_for_continue): Allow quit with 'q'.
1993-04-25 04:49:34 +00:00
Jim Kingdon
8cba9703cd * solib.c (solib_add): Don't call special_symbol_handling if there
were errors in symbol_add_stub.  Also set so->from_tty before
	calling symbol_add_stub.
1993-04-25 03:02: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
Stu Grossman
b5728692b4 * Fix two bugs found by deja-gnu. One is the incorrect reporting
of the PC being in a stack dummy when looking at a core file
	without symbols.  The other is the incorrect passing of char
	arguments during expression evaluation (ie: p foo('a','b') would
	mess up the passing of it's args because it wasn't coercing the
	char's to ints).
	* hppah-tdep.c:  Rename global functions to have consistent hppa_
	prefix.  Make more functions static.  Drop hp_ prefix from static
	functions.  (hppa_push_arguments):  Call value_arg_coerce to cast
	char to int args if necessary.  (hppa_fix_call_dummy):  Create
	this routine from FIX_CALL_DUMMY macro in tm-hppa.h.
	* inferior.h (PC_IN_CALL_DUMMY):  Check for frame_address being
	valid (ie: != 0) before doing comparison against PC.
	* valops.c (call_function_by_hand):  Adjust call to FIX_CALL_DUMMY
	to reflect new arguments.
	* config/pa/tm-hppa.h (POP_FRAME, PUSH_ARGUMENTS):  Use new hppa_
	prefix for func	name.  (FIX_CALL_DUMMY):  Move code into
	hppah-tdep.c.

	* testsuite/gdb.t16/gdbme.c, testsuite/gdb.t17/gdbme.c:  Add calls
	to malloc() so that we can test GDB eval of dynamically created
	arrays (like char strings in `print "foo"').
1993-04-23 18:01:02 +00:00
Peter Schauer
7586127f7e * printcmd.c (print_address_symbolic): Search symtabs as well as the
minimal symbols for a nearby symbol.
1993-04-23 08:42:03 +00:00
John Gilmore
158a071143 Comment changes around minimal symbol recording. 1993-04-23 02:46:00 +00:00
K. Richard Pixley
f936e20d33 comment changes only 1993-04-22 23:34:57 +00:00
K. Richard Pixley
3127785acd * mips-tdep.c (heuristic_fence_post): new static variable.
(heuristic_proc_start): use heuristic_fence_post, print better
	  warnings, but only if not stop_soon_quietly.
	  (_initialize_mips_tdep): add_set_cmd for heuristic-fence-post.
1993-04-22 23:32:33 +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
Jim Kingdon
4365c36c9b * objfiles.h (obj_section), objfiles.c (build_objfile_section_table):
Add objfile field.
	* objfiles.c (find_pc_section): Return a struct obj_section *.
	* sparc-tdep.c (in_solib_trampoline): Deal with find_pc_section return.
	* symfile.c (syms_from_objfile) [IBM6000_TARGET]:
	Don't use obj_section hack.
	* xcoffexec (vmap_symtab): Relocate obj_sections.
	* printcmd.c (containing_function_bounds): Use find_pc_section.
1993-04-22 20:42:37 +00:00
Jim Kingdon
fce30fa15e * symtab.h: Clean up SYMBOL_VALUE comments. 1993-04-22 16:12:31 +00:00
Jim Kingdon
31258e4f6f * stack.c (print_frame_arg_vars), printcmd.c (print_frame_args):
Expand comments about LOC_ARG/LOC_LOCAL pairs.
1993-04-21 22:20:53 +00:00
Jim Kingdon
f2c365f517 * coffread.c (read_coff_symtab): Use rewind before fseek. 1993-04-21 21:49:07 +00:00
Per Bothner
32d8a6d3e4 * ch-exp.y: Removed unused structure_primitive_value and FIXME_23.
* Makefile.in:  Add $(YFLAGS) when using $(YACC).
	* Makefile.in:  Remove message to expect conflicts and unused
	rules in ch-exp.y, since there no longer are any such.
1993-04-21 21:29:03 +00:00
David D. Zuhn
1b5c6c0542 fix stabs.texinfo xref bugs 1993-04-21 20:29:16 +00:00
Jim Kingdon
4cdcf3b9b3 * xcoffexec.c (xcoff_relocate_core): If no exec file, error()
rather than dumping core.
1993-04-20 20:21:40 +00:00
Jim Kingdon
24c2857c22 * Makefile.in: Add ${srcdir}/ to all source files.
(alldeps.mak): Add "${srcdir}/" to files in alldeps.mak.
	(TAGS): Deal with srcdir and new config directory scheme.
	createtags: Remove.
	Makefile.in (NONSRC): Remove createtags.
	alldeps.mak: Updated.
1993-04-20 19:29:06 +00:00
Jim Kingdon
cee86be37f * rs6000-tdep.c: Delete unused function print_frame.
* frame.h (struct frame_info): Doc fix for next_frame.
	New field signal_handler_caller.
	blockframe.c (create_new_frame, get_prev_frame_info),
	config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Set it (needs
	INIT_FRAME_PC_FIRST).
	stack.c (print_frame_info), rs6000-tdep.c (rs6000_frame_chain):
	Check it.
1993-04-20 18:02:54 +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
Jim Kingdon
3f06498af4 changes for SVR3.2 1993-04-19 18:34:55 +00:00
Jim Kingdon
058eb7667b * xcoffread.c: Nuke NO_DEFINE_SYMBOL code. There is no going back.
* stabsread.c (define_symbol): 'R' is synonym for 'P', not 'r'.
	xcoffread.c (process_xcoff_symbol, case C_RPSYM):
	Don't muck with SYMBOL_CLASS.
1993-04-19 17:39:24 +00:00
Stu Grossman
04c6a64fdd * munch: Don't use head command. It doesn't exist everywhere. 1993-04-17 00:39:55 +00:00
Fred Fish
fbf22c8b31 Remove chill sanitize lines that are no longer needed. 1993-04-16 22:21:33 +00:00
Fred Fish
9c22565940 * inflow.c (new_tty): Remove spurious 'o' character at end
of #endif line.
1993-04-16 22:15:26 +00:00
Peter Schauer
e157305cd9 * mips-tdep.c (mips_skip_prologue): Always skip the typical prologue
instructions and nothing more.
	* mipsread.c (add_line): Add comment why we have to combine line number
	entries for the same line number.
1993-04-16 19:29:14 +00:00
Jim Kingdon
0b28c26082 * symtab.{c,h}: Doc fixes (remove symseg references, last relevant
in gdb 2.8!).
1993-04-16 17:36:49 +00:00
Fred Fish
dd052d9a4b * depend, alldeps.mak: Update, now that gcc -MM bug is fixed. 1993-04-16 04:19:09 +00:00
Jim Kingdon
9fa59efdd9 * source.c (select_source_symtab): Clean up comment. Also, if
we have a current_source_symtab, and s is NULL, return without
	doing anything.
	xcoffread.c (xcoff_symfile_read): Don't call select_source_symtab.
	breakpoint.c (breakpoint_re_set): Don't call select_source_symtab.
1993-04-15 20:11:01 +00:00
John Gilmore
6f49b01e47 * dbxread.c (unknown_symchar_complaint): Add new complaint.
* stabsread.h:  Declare it.
* partial-stab.h:  Use it.
1993-04-15 09:43:33 +00:00
John Gilmore
65ce5df44f * dbxread.c (unknown_symchar_complaint): Add new complaint.
* stabsread.c:  Declare it.
* partial-stab.h:  Use it.

* utils.c (malloc_botch):  Don't forward-declare if NO_MMALLOC.
1993-04-15 09:41:59 +00:00
Jim Kingdon
df2a1bd7d9 * stack.c (print_frame_info): Print specially if dummy frame. 1993-04-15 03:36:02 +00:00
Jim Kingdon
fa99ebe19f * breakpoint.c: Add comments regarding within_scope future direction. 1993-04-15 01:45:35 +00:00
Jim Kingdon
ee7e82fedb Version 4.8.3 1993-04-15 01:13:52 +00:00
Jim Kingdon
486b440e04 * xcoffread.c (record_include_{begin,end}): Change fatal to complain. 1993-04-15 00:14:37 +00:00
Peter Schauer
39cb3d0488 * stabsread.c (read_member_functions): Initialize domain for stubbed
member functions to avoid gdb core dumps when printing pointers
	to member functions.
	* cp-valprint.c (cp_print_class_method): Check for stubbed member
	functions.
1993-04-14 19:53:11 +00:00
Jim Kingdon
e2ff731bf7 * expprint.c (print_subexp): If opcode not found in op_print_tab,
stop with an error().
	eval.c (evaluate_subexp): Change error message.
1993-04-13 19:18:37 +00:00
Jim Kingdon
ccd87bf2b4 * objfiles.c (build_objfile_section_table): Cast return value
from obstack_finish.
1993-04-13 15:31:29 +00:00
Jim Kingdon
f36492275c * config/rs6000/tm-rs6000.h, rs6000-tdep.c: Move FRAME_CHAIN
to rs6000_frame_chain and deal with it if we're in a signal handler.
	(FRAME_SAVED_PC): Use rs6000_frame_chain.
1993-04-13 06:15:14 +00:00
Jim Kingdon
0a819c0429 * breakpoint.c (within_scope): New function.
(enable_breakpoint, watchpoint_check): Use it.
1993-04-12 21:22:46 +00:00
Jim Kingdon
affc968624 source.c (openp): Handle "exec-file ./ls" correctly. 1993-04-12 18:21:25 +00:00
Jim Kingdon
0a62ff3608 (breakpoint_1): use wrap_here before "at" 1993-04-12 17:56:35 +00:00
Per Bothner
5a7c9cceb7 * ch-exp.y: Clean up lexing of identifiers and
reserved words.  (E.g. don't recognize FALSEXXX as the
	keyword FALSE followed by the identifier XXX.)
	Also, convert identifiers to lower case.
1993-04-10 08:35:32 +00:00
Stu Grossman
1724c671da * remote-mips.c, remote-monitor.c, remote-st2000.c: Convert to
new serial interface.
1993-04-09 22:55:00 +00:00
Stu Grossman
4febd10272 * remote.c (remote_open): Use SERIAL_OPEN instead of serial_open.
(putpkt, getpkt):  Use new return codes for SERIAL_READCHAR.
	* ser-go32.c:  Return -1 on most failures, 0 on most successes,
	and use new return codes for go32_readchar().
	* ser-unix.c:  Ditto.  Also, move error handling up to caller for
	SERIAL_SETBAUDRATE().
	* serial.c (serial_open):  Internal call, not SERIAL_OPEN to get
	to specific routine.
	(serial_close):  New routine to wrap around device close routine.
	serial.h:  Clean & document return values more clearly.
1993-04-09 22:14:04 +00:00
Jim Kingdon
944c1c2f31 * rs6000-pinsn.c (print_operand): Deal with no operand instructions.
* rs6000-pinsn.c (print_operand, case LI): Print condition register
	operand in decimal rather than wrong textual versions.
1993-04-09 20:54:02 +00:00
Jim Kingdon
21486670ae * printcmd.c (_initialize_printcmd): Clean up docstring for "x"
(mention 't', remove false thing about 'g' only good with 'f').
1993-04-09 18:06:45 +00:00
Jim Kingdon
ddc6e6f785 * breakpoint.h: move "struct breakpoint" and friends to top of
file so that bpstat_find_breakpoint prototype works.
1993-04-09 17:51:40 +00:00
Jim Kingdon
a80c7bf67c * solib.c (struct so_list): Add bfd field.
(solib_map_sections): Leave bfd open and scratch_pathname allocated.
	Put the bfd in bfd field of the so_list.
	(clear_solib): Free bfd name and close_bfd on the bfd.
1993-04-09 17:43:59 +00:00
Per Bothner
47f366bc62 * valarith.c (value_subscript): Add COERCE_REF.
* ch-exp.y (operand_5):  We can generalize the 2nd operand
	of a string repetition ot 'literal' without ambiguity.
1993-04-09 07:52:50 +00:00
Jim Kingdon
cabd4da684 * breakpoint.h (struct bpstat): Remove momentary field.
Remove bpstat_momentary_breakpoint.  This was always kludgy
	and is no longer used.

	* breakpoint.h: Add enum bpstat_what.
	breakpoint.h (struct bpstat), breakpoint.c (bpstat_stop_status):
	stop and print fields of bpstat now per-breakpoint, not just
	one for the whole chain.
	breakpoint.{c,h} (bpstat_what): New function.
	breakpoint.h: Remove bpstat_stop and bpstat_should_print.
	infrun.c: Replace switch (stop_bpstat->breakpoint_at->type)
	with call to bpstat_what.
	README: Remove watchpoint/breakpoint bug from known bugs.

	* breakpoint.h: Prototype bpstat_find_breakpoint.
1993-04-09 03:17:45 +00:00
Fred Fish
dfbfbd9632 * symtab.c (find_methods, gdb_mangle_name): Note that functions
are g++ specific.
	* symtab.h (VTBL_FNADDR_OFFSET, OPNAME_PREFIX_P, VTBL_PREFIX_P,
	DESTRUCTOR_PREFIX_P):  Note that macros are g++ specific.
1993-04-08 23:05:16 +00:00