Commit Graph

3150 Commits

Author SHA1 Message Date
Jim Kingdon
40b92220c5 * remote-sim.h: New file.
* remote-sim.c: Add remote debug feature.  Rename stuff to distinguish
	interface to simulator from gdb-specific stuff.  Other changes.
start-sanitize-v9
	* remote-sp64sim.c: Renamed to remote-sim.c.
	Use sr_get_debug instead of our own sim_verbose/simif_snoop.
	Use gnutarget in call to bfd_openr.
	Rename simif_* to gdbsim_*.
	* config/sparc/sp64sim.mt: Change remote-sp64sim.c to remote-sim.c.
end-sanitize-v9
1993-09-17 17:27:43 +00:00
Peter Schauer
26a08d1529 * gdb.stabs/ecoff.mt: Remove STABSCC hack.
* gdb.stabs/weird.exp:  Handle the case where weird.o is compiled
	by mips cc and contains no stabs entries.
1993-09-17 11:51:28 +00:00
Peter Schauer
30d20d1545 * findvar.c (extract_signed_integer): Cast *p to LONGEST before doing
the xor and subtract.  Otherwise it will not sign extend if the type
	of LONGEST is larger than int.
	* cp-valprint.c (cp_print_class_method):  Inhibit core dump if
	domain is an undefined cross reference.
	* valops.c (call_function_by_hand):  Set real_pc to correct
1993-09-17 11:46:50 +00:00
Jim Kingdon
f8efbf2296 * config/a29k/tm-a29k.h (FRAME_CHAIN): If rsize is zero, return zero. 1993-09-17 04:54:52 +00:00
Jim Kingdon
23afb447a2 * stabs.texinfo (Negative Type Numbers): Re-write discussions of
names, sizes, and formats to suggest how not to lose.
1993-09-17 00:50:09 +00:00
Jim Kingdon
ca0622e7e0 * remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type
to tm-a29k.h and a29k-tdep.c and make it an enum.
	* a29k-tdep.c (a29k_get_processor_type): New function.  Fix many
	aspects of how we detected the processor type.
	* remote-udi.c, remote-adapt.c, remote-mm.c (*_open): Call it
	rather than figuring out the type ourselves.
1993-09-16 23:45:46 +00:00
Rob Savoye
de8c35cfdb * config/vx-gdb.exp: Use fake device to load files rather than
NFS.
	* lib/gdb.exp: New proc to do "file" command.
	* config/unix-gdb.exp: Use new "file" proc.
1993-09-16 23:27:10 +00:00
Rob Savoye
954f33cfc0 Use new proc for "file" command to load symbol tables. 1993-09-16 23:21:56 +00:00
Stu Grossman
c9de302ba5 * infrun.c (wait_for_inferior): Allow user to single step within
a stack dummy.
1993-09-16 20:18:26 +00:00
Jim Kingdon
2670a1dd47 * dbxread.c (copy_pending): Deal with END NULL.
(process_one_symbol): Add comments about what common_block NULL means.
1993-09-16 19:54:47 +00:00
Stu Grossman
f2e21136eb * sparc-stub.c (_trap_low): Do restore/save sequence after
setting sp to ensure that we load the previous window from the
right place on the stack.
1993-09-16 19:16:19 +00:00
Ian Lance Taylor
48d10a2545 * config/mips-gdb.exp (gdb_load): Increase timeout to 2400.
Rework board rebooting slightly.
	(gdb_exit): Don't exit from the remote shell; there isn't one.
	* gdb.stabs/weird.exp: If a program is being debugged already,
	kill it.
	* gdb.t04/setvar.exp: Stop and restart gdb.
	* gdb.t05/expr.exp: Likewise.
	* gdb.t07/watchpoint.exp: If target is mips-idt-*, stop and
	restart gdb and reload the program.
	* gdb.t08/opaque.exp: Likewise.
	* gdb.t12/scope.exp: Likewise.
	* gdb.t13/bitfields.exp: Likewise.
	* gdb.t15/funcargs.exp: Likewise.
	* gdb.t20/classes.exp: Likewise.
	* gdb.t03/ptype.exp: Increase timeout.
	* gdb.t16/printcmds.exp (test_print_string_constants,
	test_print_array_constants): Likewise.
	* gdb.t17/callfuncs.exp (do_function_calls): Likewise.
	* gdb.t20/classes.exp (do_tests): Likewise.
	* gdb.t22/virtfunc.exp (test_virtual_calls): Likewise.
1993-09-16 17:57:19 +00:00
Peter Schauer
8b15c4801a * config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM): Define. 1993-09-16 07:39:41 +00:00
Peter Schauer
85999c054b * mipsread.c: Many changes for alpha ecoff format:
Correct sizeof(int) == sizeof(long) assumptions.
	Replace stParsed hack by putting the parsed types on the pending chain.
	Replace mips specific ecoff mapping by ECOFF_REG_TO_REGNUM macro,
	provide default for cross debugging.
	Swapping the symbol back is no longer needed as the symbol is not
	modified anymore.
	Add new alpha basic types, handle btTypedef, handle stStaticProc
	external symbols .
	Update and clean up cross_ref for alpha cc cross ref variations.
	Allocate types on the type_obstack to inhibit storage leaks.
	* config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM):  Define.
	* gdbtypes.c (recursive_dump_type):  Dump TYPE_TAG_NAME if it is set.
1993-09-16 07:38:42 +00:00
Ian Lance Taylor
8cced93dd7 Change wierd to weird 1993-09-15 22:17:29 +00:00
Jim Kingdon
3283eab366 * remote-utils.[ch]: new files of functions collected from several
different remote targets.
1993-09-15 20:20:23 +00:00
Jim Kingdon
f424845a95 * gdb.t13/bitfields.exp: Test for bad output rather than waiting
for timeout.  Add "known gcc 2.4.5 bug" to failure message.
1993-09-15 17:39:33 +00:00
Jim Kingdon
ddf5d7e82e * paread.c, coffread.c, elfread.c, dwarfread.c:
Include <time.h> and <sys/types.h> before libbfd.h.
1993-09-15 16:45:44 +00:00
Jim Kingdon
06f63f95db * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.
(do_tests): Remove xfail for whatis on one_var and two_var.
1993-09-15 00:47:45 +00:00
Jim Kingdon
5ed0ccafca * stabsread.c (read_type): Process "s" (size) type attribute.
If type is defined to another type, copy the type.
1993-09-15 00:46:55 +00:00
Jim Kingdon
791e451394 * paread.c, coffread.c, elfread.c, dwarfread.c:
Include <time.h> before libbfd.h.
1993-09-14 23:26:43 +00:00
Ian Lance Taylor
aa8fe9070c * config/i386/i386v4.mh (NATDEPFILES): Move exec.o from here...
* config/i386/i386v4.mt (TDEPFILES): ...to here.
1993-09-14 22:41:49 +00:00
K. Richard Pixley
b70b042d02 fix serial.h inclusion 1993-09-14 20:08:23 +00:00
K. Richard Pixley
a94abe5bb7 use remote-utils facilities for baud_rate 1993-09-14 19:34:15 +00:00
Jim Kingdon
fc77365385 * paread.c, coffread.c, elfread.c: Include <time.h> before libbfd.h. 1993-09-14 18:10:42 +00:00
Jim Kingdon
1225fcbd24 * paread.c: Include <time.h> before libbfd.h.
* paread.c: Define BYTES_IN_WORD before including aout/aout64.h.
1993-09-14 17:32:45 +00:00
Jim Kingdon
899931b638 * Makefile.in (a29k-tdep.o): Depend on $(defs_h).
* config/a29k/tm-a29k.h (SAVED_PC_AFTER_CALL): Use gr122 not lr0
	if this	is a transparent procedure.
1993-09-14 16:22:07 +00:00
Jim Kingdon
f8f6b2c755 * remote-udi.c (udi_wait): Return inferior_pid not 0. 1993-09-14 16:19:30 +00:00
Jim Kingdon
55fea07b55 * remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary
hack so this file compiles again.

	* remote-utils.c (gr_multi_scan): Cast return value from alloca.
	(gr_multi_scan): #if 0 never-reached return(-1).
1993-09-14 01:08:22 +00:00
Jim Kingdon
02ff0cd370 add comment 1993-09-13 23:06:17 +00:00
K. Richard Pixley
c6f494e8be collect some remote things into remote-utils 1993-09-13 22:12:16 +00:00
Jim Kingdon
37c99ddb4e * inferior.h, infrun.c, thread.c, infcmd.c: Remove all uses of
pc_changed.  If it was ever set to a non-zero value, it was before
	GDB 2.8.  It doesn't seem to have any useful function.
1993-09-13 20:54:00 +00:00
Jim Kingdon
e3c16900cd * defs.h: Don't define NORETURN (see comment). 1993-09-13 20:13:03 +00:00
Jim Kingdon
11e7b867f1 * gdb.texinfo: Clarify how well it works with Fortran. 1993-09-12 05:00:53 +00:00
Jim Kingdon
00dff7538a * m88k-nat.c (fill_gregset): Set r31 and sfip. 1993-09-11 17:48:47 +00:00
Jim Kingdon
9d719a9cf9 * stabs.texinfo (Methods): Fix typo. 1993-09-11 16:36:01 +00:00
Ian Lance Taylor
d6a9983874 Snapshot of current i386 NLM debugging stub. 1993-09-10 23:25:40 +00:00
Rob Savoye
3f677d9e6e Added gdb_exit to call default_gdb_exit. 1993-09-10 17:35:11 +00:00
David MacKenzie
7640fe7108 fix a few typos 1993-09-10 13:36:07 +00:00
Jim Kingdon
f46ffb9ebd More gcc lint:
* exec.c (ignore): Return 0.
	* stack.c (return_command): Fetch lazy value directly, not via
	VALUE_CONTENTS, to avoid "value computed is not used".
	* inflow.c (new_tty): Move osigttou inside #if.

	* remote.c (remote_fetch_registers): If remote reply is short, just
	note that fact and keep going (reading extra registers as all bits 0).
	(remote_store_registers): Send number of registers that were found
	by remote_fetch_registers.
	* m68k-tdep.c, config/m68k/tm-m68k.h, config/m68k/tm-*.h: Remove
	HAVE_68881.  Define CANNOT_STORE_REGISTER if ptrace() can't write
	floating registers.
	* config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt,tm-m68k-fp.h,m68k-fp.mt}:
	Remove, replaced by {tm-m68k-em.h,m68k-em.mt}.
	* Makefile.in, configure.in: Change accordingly.
1993-09-09 18:33:44 +00:00
Jim Kingdon
5c303f64ca * remote-udi.c (udi_wait, case UDIStdinNeeded): Use a loop calling
getchar() (terminated only on '\n') instead of scanf.  Send the
	'\n' which terminates it to the remote system.
1993-09-09 17:58:46 +00:00
Jim Kingdon
fc7ed03957 * config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt}: Remove.
* config/m68k/{tm-m68k-fp.h,m68k-fp.mt}: Rename to
	{tm-m68k-em.h,m68k-em.mt}.
1993-09-09 16:09:37 +00:00
Peter Schauer
da398610b5 * mipsread.c (cross_ref): Allow SGI extended symbol types as cross
reference targets.
	* symmisc.c (print_symbol):  Use TYP_TAG_NAME not TYPE_NAME to avoid
	printing of identities.
1993-09-09 12:02:59 +00:00
Rob Savoye
4adf693011 Made cross testing work better. 1993-09-09 05:12:46 +00:00
Jim Kingdon
3ff8a96f44 * gdb.texinfo: Clarify how well it works with Fortran. 1993-09-09 01:53:36 +00:00
Jim Kingdon
93bb0afaf6 * breakpoint.c (breakpoint_1): Deal with step resume breakpoint. 1993-09-09 00:33:22 +00:00
Jim Kingdon
cd61aa60cb * stabs.texinfo (Stabs In ELF, Statics, ELF Transformations):
More on relocating stabs in ELF files.
1993-09-08 23:05:46 +00:00
K. Richard Pixley
89812a0ed5 gcc lint 1993-09-08 21:45:46 +00:00
K. Richard Pixley
c323585b89 gcc lint 1993-09-08 21:45:17 +00:00
K. Richard Pixley
fee933f19c gcc lint 1993-09-08 21:30:33 +00:00