Commit graph

6592 commits

Author SHA1 Message Date
Stan Shebs
a9b9b4071f * remote.c (target_resume_hook, target_wait_loop_hook): New
globals.
 	(remote_resume, remote_wait): Use them.
	* d10v-tdep.c: Set the above hooks.
	(tracesource): New GDB variable, controls source display in
 	traces.
	(display_trace): Find and display source line if requested.
	(trace_info): Mention empty trace buffer if appropriate.
	(tdisassemble_command): Robustify argument handling.
1997-03-24 00:08:26 +00:00
Stan Shebs
94626fd155 * configure.host: Remove extra bogus Linux case. 1997-03-23 20:50:09 +00:00
Bob Manson
4d400231d9 Moved change from gdb_target_udi to gdb_start. 1997-03-23 04:41:14 +00:00
Bob Manson
fb9eb1371d * config/udi.exp(gdb_target_udi): Make sure UDICONF is set
properly before starting gdb.
1997-03-23 04:01:48 +00:00
Fred Fish
09f0789e93 Add this file too.. 1997-03-22 23:55:06 +00:00
Fred Fish
46c755d495 Forgot this change in last checkin. 1997-03-22 23:53:32 +00:00
Fred Fish
12967062e4 * remote-sim.c (simulator_command): Add comment about dealing with
NULL or empty args.
start-sanitize-tic80
	* Makefile.in (tic80-tdep.o): Add target.
	* configure.tgt: Add tic80 case.
	* tic80-tdep.c: New file.
	* config/tic80/{tic80.mt, tm-tic80.h}: New files.
end-sanitize-tic80
1997-03-22 23:52:04 +00:00
Peter Schauer
0742270560 * c-exp.y (yylex): Handle nested template parameter lists.
* symtab.c (decode_line_2):  Fix test for valid choice number.
1997-03-22 10:50:18 +00:00
Mark Alexander
c81a76b311 * mips-tdep.c (mips_push_arguments): On non-EABI architectures,
copy first two floating point arguments to general registers, so that
	MIPS16 functions will receive the arguments correctly.
	(mips_print_register): Print double registers correctly on
	little-endian hosts.
	(mips_extract_return_value): Return double values correctly
	on little-endian hosts.

	* mdebugread.c (parse_procedure): Adjust address of procedure relative
	to address in file descriptor record; this accounts for constant
	strings that may precede functions in the text section.  Remove
	now-useless lowest_pdr_addr from argument list and all calls.
1997-03-22 04:40:03 +00:00
Michael Meissner
23e92f3fbd Make powerpc simulator support in gdb dependent on whether the simulator was configured in 1997-03-21 20:56:10 +00:00
Jeff Law
fe380dcc43 * mn10200-tdep.c (mn10200_analyze_prologue): Look for save of "a1"
in the prologue too.
1997-03-21 06:15:27 +00:00
Jeff Law
011fa67124 * remote-sim.c (gdb_os_vprintf_filtered): Fix to work with non-ANSI
compilers.
        (gdb_os_evprintf_filtered): Similarly.
1997-03-21 03:53:59 +00:00
Geoffrey Noer
aefe80633b Fixed .Sanitize 1997-03-20 21:52:10 +00:00
Jeff Law
593f97fe13 Fix minor sanitization problems 1997-03-20 20:30:29 +00:00
Geoffrey Noer
9e3977b9df Wed Mar 19 16:13:22 1997 Geoffrey Noer <noer@pizza.cygnus.com>
New UnixWare 2.1 configuration
        * config/i386/i386v42mp.mt: new
        * config/i386/i386v42mp.mh: new
        * config/i386/tm-i386v42mp.h: new
        * config/i386/nm-i386v42mp.h: new
        * configure.tgt: added new entries
        * configure.host: added new entries
1997-03-20 00:41:50 +00:00
Andrew Cagney
25151509b7 remote-sim.h moved to include directory 1997-03-20 00:18:55 +00:00
Martin Hunt
8a19b35a1b Wed Mar 19 15:16:17 1997 Martin M. Hunt <hunt@onions.cygnus.com>
* Makefile.in:  Install gdbtcl dir instead of gdbtk.tcl.

	* gdbtk.c: Added some ifdefs for Windows.  Changed GDBTK_FILENAME
	to GDBTK_LIBRARY, which is now a path to search.
	(gdb_path_conv): New function.  Convert Cygwin32 pathname to
	DOS-style pathname.

	* aclocal.m4, configure.in: Changes for Windows builds.

	* configure: Rebuilt.
1997-03-19 23:39:20 +00:00
J.T. Conklin
3295179c83 * dsrec.c (load_srec): Print leading zeroes when printing section
addresses.
1997-03-18 01:54:50 +00:00
Andrew Cagney
dbb0b55caa Part of previous move of remote-sim.h to ../include 1997-03-17 14:40:22 +00:00
Andrew Cagney
48ae80573e * remote-sim.h: Delete - moved to ../include/remote-sim.h.
* Makefile.in (remote_utils_h): Update path to remote-sim.h.
* remote-sim.c (flush_stdout, write_stderr, flush_stderr,
vprintf_filtered, evprintf_filtered): Callbacks that accept
varargs.
1997-03-17 14:23:31 +00:00
Peter Schauer
ac7a8760f5 * breakpoint.c (insert_breakpoints, watchpoint_check,
bpstat_stop_status):  Do not disable watchpoints going out of scope.
	(insert_breakpoints):  Make sure that the current frame is valid
	before calling find_frame_addr_in_frame_chain.

	* top.c (setup_user_args):  Handle quotes and backslashes.
	(print_gdb_version):  Update copyright year.
1997-03-15 08:53:41 +00:00
Ian Lance Taylor
a3ee56ec14 * Makefile.in (elfread.o): Depend upon elf-bfd.h and elf/mips.h. 1997-03-14 20:44:51 +00:00
Tom Tromey
469640865d * configure: Regenerated.
* configure.in (LIBS): Re-reverse order of TCL_LIBS and TK_LIBS.
1997-03-14 17:16:43 +00:00
Dawn Perchik
35a78bd09b * utils.c(pollquit, notice_quit): If _WIN32, limit test for cntl-C
to wingdb.
	(initialize_utils): If _WIN32, don't call ScreenRows and ScreenCols
	except under wingdb.  (Contributed by Martin Hunt).
1997-03-14 06:05:04 +00:00
David Edelsohn
8f2d2d61fa Add some more comments. 1997-03-13 21:12:22 +00:00
Tom Tromey
f02156cf49 * configure: Regenerated.
* configure.in: Run AC_CONFIG_AUX_DIR before AC_CANONICAL_SYSTEM.

	* config.in: Regenerated.

	* acconfig.h (START_INFERIOR_TRAPS_EXPECTED, sys_quotactl,
	HAVE_HPUX_THREAD_SUPPORT): Define.

	* gdbtk.c (x_event): Use Tcl_DoOneEvent, TCL_DONT_WAIT,
	TCL_ALL_EVENTS.

	* configure: Regenerated.
	* configure.in (ENABLE_GDBTK): Put TCL_LIBS after TK_LIBS in
	LIBS.
1997-03-13 20:39:56 +00:00
David Edelsohn
286f83b430 * remote-sim.h (sim_state, SIM_DESC): New types.
(sim_open): Return a `descriptor' as result.
	(*): New argument of descriptor result from sim_open.
	* remote-sim.c (gdbsim_desc): Renamed from gdbsim_open_p.
	(gdbsim_open): Record result of sim_open in gdbsim_desc.
	Pass argv list to sim_open, argv[0] = pseudo program name.
	(*): Pass gdbsim_desc to sim_foo fns.
1997-03-13 20:28:26 +00:00
Bob Manson
5834946d5a Removed, no longer used. 1997-03-11 19:45:29 +00:00
Bob Manson
968cad7633 * config/monitor.exp: Make sure we disconnect from the target.
Also, try a reboot/reload cycle instead of failing if the
	load fails.
1997-03-11 19:45:02 +00:00
Mark Alexander
33ef0f9387 First cut at supporting simulators in gdbserver:
* configure, configure.in: Allow gdbserver to be configured
	for cross-target environments.
	* gdbserver/Makefile.in: Add simulator support.
	* gdbserver/configure.in: Eliminate assumption that host == target.
	Simplify using gdb/configure.tgt and gdb/configure.host.
	Fix other minor configuration errors.
	* gdbserver/low-sparc.c: Fix compile error.
	* gdbserver/remote-utils.c: Eliminate assumption that registers
	and addresses are four bytes.  Fix minor compile errors and warnings.
	* gdbserver/server.c: Rewrite numerous instances of identical code
	for starting inferior processes to call new function start_inferior.
	Eliminate assumption that registers and addresses are four bytes.
	* gdbserver/server.h: Add missing prototypes to eliminate compiler
	warnings.
	* gdbserver/low-sim.c: New file to mate gdbserver with simulators.
	* config/mips/vr5000.mt: Add Vr5000 simulator support to gdbserver.
	* config/i386/linux.mh: Eliminate gdbserver support as a first step
	in moving such support from host to target makefile fragments.
	* config/i386/linux.mt: Move gdbserver support here from linux.mh.
1997-03-11 15:49:20 +00:00
Michael Snyder
b18f1777a1 Mon Mar 10 12:27:47 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* symtab.h (INIT_SAL): New macro to initialize symtab_and_line,
	to insure consistant initialization of unused fields to zero.
	* symtab.c: replace initializations of sals with new macro INIT_SAL.
	* breakpoint.c: ditto.
	* infrun.c: ditto.
	* infcmd.c: ditto.
	* source.c: add call to INIT_SAL macro.
1997-03-10 20:33:35 +00:00
Peter Schauer
a8d38bc586 * sparc-tdep.c (isbranch): Always handle v9 branch instructions,
they might get used on 32 bit targets as well.
1997-03-08 08:18:02 +00:00
Bob Manson
60450e30e9 * gdb.base/default.exp: Don't set match_max.
* gdb.base/help.exp: Ditto.
	* gdb.base/list.exp: Ditto.
	* gdb.base/signals.exp: Ditto.

	* config/monitor.exp(gdb_load): If gdb,use_standard_load is
	set, use remote_ld to download the testcase instead of
	the GDB loader.
1997-03-07 22:00:02 +00:00
Bob Manson
fa5864d5f7 Added and updated copyright notices to testsuite expect
scripts.
1997-03-06 22:32:25 +00:00
Bob Manson
a9b2f48deb More .Sanitize. 1997-03-06 07:29:40 +00:00
Bob Manson
ab670f8e53 * config/vr5000.exp: New file. 1997-03-06 07:12:21 +00:00
Bob Manson
2f693513f5 * config/monitor.exp(gdb_target_monitor): Add pattern for
"Ending remote" to detect errors in connecting.

	* gdb.base/setshow.exp: Add .* within auto language test.
1997-03-06 05:30:54 +00:00
Bob Manson
db38473ab8 * remote-mips.c (mips_exit_debug): Some IDT boards don't
send the full exit string.

Fixes a bug when trying to load to our mips IDT boards.
1997-03-06 03:36:05 +00:00
Bob Manson
ae7872effe * lib/gdb.exp(gdb_run_cmd): Add check for gdb_init_command
target feature.
1997-03-06 01:51:44 +00:00
Jeff Law
fc5c75955b * mn10200-tdep.c (mn10200_push_arguments): Handle new calling
conventions.
        (mn10200_store_struct_return): Likewise.
1997-03-05 20:01:04 +00:00
Jim Wilson
86d013f70a Correct sparclet sanitize errors. 1997-03-04 02:28:23 +00:00
Bob Manson
d1e47b8e06 * gdb.base/a1-selftest.exp: Use send_gdb consistently. Don't
refer to gdb_spawn_id.

	* config/m32r-stub.exp: Remove references to gdb_spawn_id, no
	longer used.
	* config/sparclet.exp: Ditto.
	* config/sparclet-old.exp: Ditto.
	* config/slite.exp: Ditto.
	* config/sim.exp: Ditto.
	* gdb.base/funcargs.exp: Ditto.

	* lib/gdb.exp:Remove references to gdb_spawn_id.
	(gdb_expect): Move to remote.exp.
1997-03-04 00:49:59 +00:00
David Edelsohn
ba5b9ebadd * defs.h (LONGEST): Move #ifndef LONGEST to outside.
Try BFD_HOST_64_BIT if ! CC_HAS_LONG_LONG.
1997-03-03 20:29:39 +00:00
Jim Wilson
a3c5b9a4a1 Correct d10v sanitization errors. 1997-03-03 00:35:40 +00:00
Bob Manson
847e232af6 * config/monitor.exp: Detect the "Couldn't establish connection"
message from GDB.

one of many, presumably.
1997-03-01 04:50:01 +00:00
Mark Alexander
c1fc093571 * mips-tdep.c (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR):
New macros for testing, setting, and clearing bit 0 of addresses.
	Change numerous bits of code where bit 0 was being manipulated
	to use these macros.
1997-02-28 03:00:51 +00:00
Ian Lance Taylor
b434a5b9d3 * stabs.texinfo (String Field): Document type number pairs here,
instead of in the Sun specific section.
	(Include Files): The GNU linker supports the N_BINCL
	optimization.  Clarify the N_BINCL value, and what it is used
	for.
	(Procedures): Document N_FUN with an empty string to mark the end
	of a function.
	(Typedefs): Mention that Sun compilers may use N_GSYM for a type.
	(Sun Differences): Remove this node, as the information is now
	elsewhere in the main document.
	(Stab Section Basics): Mention that the GNU linker may optimize
	stabs and remove the leading N_UNDF symbol.
1997-02-27 22:48:47 +00:00
Mark Alexander
d6ca85a8ca * remote-mips.c: Put back the form feeds. 1997-02-27 22:14:22 +00:00
Mark Alexander
266454ca50 * remote-mips.c: Remove form feeds (^L) from source.
(mips_initialize): LSI PMON doesn't support 'set regsize' command.
	(pmon_wait): Don't need to exit and re-enter debug mode on LSI
	PMON after a continue; it causes target program misbehavior.
	(mips_fetch_register): Don't fetch unsupported registers; this
	cuts down on wasted serial traffic.
1997-02-27 21:45:29 +00:00
Stu Grossman
c4c9112ad8 * configure.in configure (HPUX/OSF thread support): Enable this
only when running GCC, since HP's thread header files use ANSI C
	which is not supported by their default compiler.
1997-02-27 18:09:22 +00:00