Commit Graph

6619 Commits

Author SHA1 Message Date
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
Stu Grossman bfde4a671b * configure.host (i[3456]86-*-windows): Disable long long
support for WinGDB.  Add mswin to configdirs.
	* configure.in configure:  Move calls to configure.host and
	configure.tgt to the top of configure.in to allow them to set
	config variables before they are referenced.
1997-02-27 17:46:18 +00:00
Jeff Law 894b9f921d FIxing Sanitize problems found by Marilyn. 1997-02-27 17:05:25 +00:00
Jeff Law e7311f29e5 Fixing Sanitize errors found by Marilyn. 1997-02-27 17:03:43 +00:00
Stan Shebs 84fdbc864f * configure.tgt (mips*-*-lnews*): New target. 1997-02-26 04:23:45 +00:00
Jeff Law 05f9155f5c * mn10200-tdep.c (mn10200_analyze_prologue): Don't fix fi->frame
if we're not the innermost frame.  Fix minor typos.
So debugging without frame pointers works.
1997-02-24 23:38:31 +00:00
Bob Manson 3c0af8a010 * lib/gdb.exp(gdb_test): Generate a FAIL message when
send_gdb fails.
1997-02-24 21:24:26 +00:00
Bob Manson 40ac16240a * config/vr4300.exp: New file.
* gdb.*/*.exp: Call gdb_expect instead of expect.

	* lib/gdb.exp(gdb_expect): New function.
1997-02-24 05:43:35 +00:00
Peter Schauer f3cc5a0ea4 * stabsread.c (read_type): Fix handling of template names
with template parameters containing `::'.

	* valops.c (search_struct_field, search_struct_method):
	Pass correct valaddr parameter to baseclass_offset.
	Prevent gdb crashes by making sure that the virtual base pointer
	from an user object still points to accessible memory.
1997-02-22 11:42:07 +00:00
Bob Manson cea0f6fc02 Added vxworks.exp. 1997-02-22 00:17:12 +00:00
Bob Manson c309781f7e * lib/gdb.exp(gdb_init): New function. 1997-02-21 00:22:50 +00:00
Bob Manson eb659148ad * gdb.base/setvar.exp(test_set): Don't bother printing a PASS/FAIL
for each individual variable set.
1997-02-21 00:21:34 +00:00
Bob Manson 38ee47dc4a * gdb.base/exprs.exp(test_expr): Make sure each test gets a unique
name.
1997-02-20 23:45:23 +00:00
Bob Manson 42c254c939 * gdb.base/help.exp: Fix the syntax of a few gdb_test calls.
hmmm, automagic conversion left -re things.
1997-02-20 22:52:38 +00:00
Bob Manson dadace266a * gdb.base/scope.exp: Use gdb_test.
* gdb.base/ptype.exp: Don't call "gdb_exit; gdb_start" if we're
	aborting; the testsuite driver will do that for us (see
	gdb_finish). Also, use gdb_test in a few more places.
1997-02-20 22:13:52 +00:00
Stan Shebs 3fe495606c * gdb.base/help.exp: Fix syntax of "help info all-registers" test. 1997-02-20 21:38:08 +00:00
Jeff Law 66a5e0e94c * gdb.disasm/mn10200.s: Add "nop" after "main" so that "main"
and "add_tests" are not at the same address.
Fixes gdb disassembler testsuite failure on sunos4 hosted toolchain.
1997-02-20 17:36:12 +00:00
Michael Meissner c6c7035cfb Since d10v is public now, remove all sanitization statements 1997-02-20 16:05:18 +00:00
Mark Alexander 6e5d087d12 * maint.c: Eliminate -Wall warnings by including some header files. 1997-02-18 21:36:36 +00:00
Mark Alexander 1387cba164 * remote-sim.c (init_callbacks): Undo previous change. 1997-02-18 21:05:55 +00:00
Dawn Perchik 7ae78a73cf * maint.c: Fix dereference of pointer.
* remote-sim.c: Fix reference of structure member "last_error".
	* debugify.c: Include config.h to get ANSI definitions.
1997-02-18 19:33:29 +00:00
Stu Grossman e1a51cc222 * remote-vx.c (vx_attach): Fix for PR 11356. Remove code added
by kung.  It made no sense.
1997-02-16 01:50:18 +00:00
Ian Lance Taylor 4fbc396d5b * main.c (print_gdb_help): Make static to match declaration. 1997-02-14 18:00:34 +00:00
Dawn Perchik e36491f4a5 * remote-e7000.c, ser-e7kpc.c, serial.c: Remove // comments. 1997-02-14 02:20:48 +00:00
Jeff Law d83c8ac193 * gdb.disasm/mn10200.s (misc_tests): Fix targets for "jsr" insns.
* gdb.disasm/mn10200.exp (misc_tests): Remove bogus line accidentally
        left in.  No longer expect them to fail.
1997-02-13 23:33:33 +00:00
Jeff Law f8cc5c612e * gdb.stabs/*.mt; Deleted, no longer used.
* gdb.stabs/configure.in: Remove references to target makefile
        frags.
        * gdb.stabs/configure: Rebuilt.
Removing more crud.
1997-02-13 23:20:09 +00:00
Jeff Law f43e619c5b * gdb.disasm/*.mt: Deleted, no longer used.
* gdb.disasm/configure.in: Remove references to target makefile
        frags.  Use "sh3.s" as the unique filename for this directory.
        * gdb.disasm/configure: Rebuilt.
Cleaning up unused crud.

        * gdb.disasm/mn10200.s: New test file for mn10200 disassembler.
        * gdb.disasm/mn10200.exp: Run mn10200 disassembler tests.
        * gdb.disasm/Makefile.in: Remove "mn10200" when cleaning.
mn10200 disassembler testsuite.
1997-02-13 23:16:26 +00:00
Dawn Perchik 8662603f08 * debugify.c, debugify.h: Make safe for non-ansi compilers. 1997-02-13 00:01:21 +00:00
Dawn Perchik 2dec49333b * defs.h: Fix prototypes for new cleanup functions. 1997-02-12 23:32:50 +00:00
Dawn Perchik 27e81a4e1b * debugify.c, debugify.h: Fix for general gnu use. Remove C++
comment, add PARAMS, add license info and fix indentation.
1997-02-12 23:16:32 +00:00
Dawn Perchik 4659e3b367 * debugify.c, debugify.h: New files. Provide common macros
for writing debug info to a log file or stdio.
1997-02-12 22:48:45 +00:00
Dawn Perchik 65c89fc376 * c-valprint.c: Fix checkin glitch. 1997-02-12 15:18:10 +00:00
Dawn Perchik be733f5841 * c-valprint.c (c_val_print): Fix printing for arrays defined
with 0 length.  A sticky tag caused this fix from
        revision 2.32 date: 1996/04/29 23:25:27;  author: dawn;
        state: Exp;  lines: +1 -0 branches:  2.32.34;
        to not make it into devo.
1997-02-12 10:49:20 +00:00
Dawn Perchik 16a43bf443 * defs.h: Fix cntl-C to read from the Windows message queue.
Add prototypes for make_final_cleanup (and the other cleanup
	routines.
	* remote-e7000.c: Fix sync code to timeout if unable to sync.
	Change sync code to report status while trying to sync-up
	with hardware.  Add debugging output and document.
	* ser-e7kpc.c: Swap order of len & offset to match implementation.
	Add debugging output and document.
	* serial.c: Add debugging output.
	* top.c: Add call to do_final_cleanups.
	Remove conditionals preventing Win32 from getting SIGQUIT.
	* utils.c: (*_cleanup): Modify cleanup routines to accept a cleanup
	chain as a parameter.  Extract this generic code from the cleanup
	routines into separate funtions (*_my_cleanup).  Keep old
	functionality by passing "cleanup_chain" to the new funtions.
	Define the cleanup chain "final_cleanup_chain" to be a cleanup
	chain which will be executed only when gdb exits.  Add functions
	(*_final_cleanup) to match the original (*_cleanup) functions.
	(pollquit, quit, notice_quit): Fix to read cntl-C from the
	Windows message queue.
1997-02-12 10:27:11 +00:00
Jeff Law 6fb47af036 Revert last structs.exp change -- I found the problem. 1997-02-12 02:06:34 +00:00
Bob Manson 76abb184ef * config/udi.exp: Use mondfe,name instead of remote_host.
remote_host is a bad naming choice.
1997-02-12 01:00:49 +00:00
Jeff Law 8bd49d39b3 Remove REG_STRUCT_HAS_ADDR change. 1997-02-12 01:00:46 +00:00
Jeff Law d601a41faa * config/mn10200/tm-mn10200.h (STORE_STRUCT_RETURN): Fix.
* mn10200-tdep.c (mn10200_store_struct_return): New function.
        (REG_STRUCT_HAS_ADDR): Tweak.
Fixes most of the structs.exp tests.
1997-02-12 00:48:47 +00:00
Jeff Law 380c32d50d * gdb.base/structs.exp: Expect some failures from the mn10200 port.
I don't want to deal with this for the alpha!
1997-02-12 00:45:46 +00:00
David Edelsohn 46148567bd * m32r-rom.c: #include <sys/types.h>.
#ifdef out new load support if wingdb.
1997-02-11 23:38:50 +00:00
David Edelsohn a66c8b50d1 * m32r/tm-m32r.h (TARGET_M32R): Define, for wingdb. 1997-02-11 23:38:25 +00:00
Jeff Law 527579ee7b * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE): Fix case when
extracting a return value from a register pair.
Fixes remaining failures in callfuncs.exp, but not structs.exp.
1997-02-11 22:40:54 +00:00
Jeff Law 3d6ab69f35 * gdb.base/watchpoint.exp: Don't expect a failure when calling
a function with a watchpoint enabled on the mn10200.
1997-02-11 19:54:45 +00:00
Jeff Law 25de138b06 * mn10200-tdep.c (mn10200_push_arguments): Stack only needs to
be two byte aligned.  Round argument sizes up to two byte boundary.
        Write out args in two byte hunks.
        (mn10200_push_return_address): Implement.
        * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE): Abort for
        structures > 8 bytes (temporary).
        (STORE_RETURN_VALUE): Likewise.
        (CALL_DUMMY): No longer undefine.
        (USE_STRUCT_CONVENTION): Use for args > 8 bytes.
        (REG_STRUCT_HAS_ADDR): Define.
Inferior function calls for the mn10200.
1997-02-11 19:31:29 +00:00
Jeff Law 9e40b4f147 * gdb.stabs/weird.exp: Don't quit if "weird.s" doesn't exist
before trying to create it!
1997-02-11 18:24:21 +00:00
Gavin Romig-Koch 276c2d7dc8 Add r5900 1997-02-11 13:26:34 +00:00
Bob Manson dba77cd79b * config/vx.exp: Use hostname instead of netport.
* config/vxworks.exp: New file.

	* gdb.base/a2-run.exp: Change vxworks cases to use gdb_spawn_id.

	* config/monitor.exp(gdb_target_monitor): Look for a prompt from
 	gdb before assuming everything worked. Send a ^C if a timeout
	occurs.

Random fixes for vxworks and d10v.
1997-02-11 06:38:22 +00:00
Mark Alexander 7061bb0ef3 * mips-tdep.c (non_heuristic_proc_desc): New function.
(find_proc_desc): Move non-heuristic proc search code into separate
	function.
	(gdb_print_insn_mips): Use non-heuristic method to find procedure
	descriptor, to avoid prologue examination when disassembling.
	* remote-mips.c: Add support for new "lsi" target (LSI MiniRISC
	aka MicroMeteor board).
	(mips_exit_debug): Prevent protocol reinitialization if an error
	occurs while exiting debug mode.
1997-02-11 02:48:55 +00:00
Bob Manson 6a590607fc * lib/gdb.exp(gdb_test): Check the result of send_gdb. Use
$gdb_spawn_id directly.

Checking for errors actually helps. *sigh*
1997-02-11 00:49:17 +00:00
Jeff Law a698d0d06f * mn10200-tdep.c: Remove lots of debugging printfs, update/improve
comments, formatting, etc.  Plus other minor fixes for problems
        I found during my first pass over the mn10200 port.
        (mn10200_analyze_prologue): New function.
        (mn10200_frame_chain, mn10200_init_extra_frame_info): Use it.
        * config/mn10200/tm-mn10200.h: Lots of updates/improvements to
        comments, formatting, etc.  Minor fixes for problems I found during
        my first pass over the mn10200 port.
        (TARGET_*_BIT): Define appropriately for ints, long longs, doubles and
        pointers.
        (REGISTER_VIRTUAL_TYPE): Define as a long.
        (EXTRACT_RETURN_VALUE): Rework to deal with long ints living
        in register pairs.
        (STORE_RETURN_VALUE): Similarly.
Checking in my initial changes, prologue scanning, etc.
Current gdb testsuite results:

                === gdb Summary ===

# of expected passes       3684
# of expected failures     40
# of unexpected failures   6
1997-02-10 23:56:56 +00:00
Jeff Law efaf2b5892 * blockframe.c (generic_get_saved_regs): Remove unused variable
"addr".
        * breakpoint.c (frame_in_dummy): Move struct breakpoint *b decl
        inside #ifdef CALL_DUMMY.
        (watch_command_1): Initialize target_resources_ok.
        * command.c (do_setshow_command): Provide dummy initialization
        for "match".
        * valops.c (find_function_addr): Move function & prototype inside
        #ifdef CALL_DUMMY.
        (value_arg_coerce): Similarly.
        (value_of_variable): Provide dummy initialization of "frame".
Lint.
1997-02-10 23:15:37 +00:00
Jeff Law 66e7ce0add * gdb.base/exprs.exp: Delete bogus/incorrect (and probably
redundant) test.
1997-02-10 22:24:53 +00:00
Stu Grossman 40dffa42ba * gdbtk.c (call_wrapper): Clear running_now if an error occurs.
This fixes PR 11323, where gdbtk stops responding if an error occurs.
1997-02-10 21:52:46 +00:00
Jeff Law 797b43f662 * gdb.base/recurse.exp: Relax final value test for 'b' so that
it doesn't lose for 16bit integer systems.
1997-02-10 18:30:03 +00:00
Fred Fish 86fdcdafd1 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Add NULL asection* parameter
to prim_record_minimal_symbol_and_info call that was missed in Jan 3
	change.
	(scan_xcoff_symtab): Ditto.
1997-02-10 15:59:01 +00:00
Mark Alexander 32dab60312 * remote-mips.c (common_breakpoint): Prevent 64-bit addresses
from being sent to 32-bit targets by masking off upper bits.
	* mips-tdep.c (heuristic_proc_start): Mask off upper 32 bits
	of PC on 32-bit targets.
	(mips16_heuristic_proc_desc): Recognize 'addiu s1,sp,n' as a
	frame setup instruction.
	(mips32_heuristic_proc_desc): Fix warning found by gcc -Wall.
	(mips16_skip_prologue): Recognize 'addiu s1,sp,n' as a valid
	prologue instruction.  Fix warnings and bugs found by gcc -Wall.
	* buildsym.c (finish_block): Improve handling of overlapping blocks;
	fixes problem on MIPS16 printing function arguments.
1997-02-09 17:36:49 +00:00
Peter Schauer e7e98487ba * dwarf2read.c (dwarf2_linkage_name): New function to get
the linkage name of a die from DW_AT_MIPS_linkage_name or
	DW_AT_name.
	(read_func_scope, dwarf2_add_field, dwarf2_add_member_fn,
	new_symbol):  Use it instead of accessing DW_AT_name.
	(read_partial_die):  Use DW_AT_MIPS_linkage name as name of the
	partial die if present.
	(dwarf2_add_member_fn):  Make a copy of physname on the type obstack.
1997-02-08 09:16:26 +00:00
Jeff Law c301abbdbb * blockframe.c (generic_frame_chain_valid): If the new frame
is not INNER_THAN the old frame, then it's not valid.
1997-02-07 17:07:49 +00:00
Jeff Law 28ec59b4cf * gdb.fortran/types.exp: If the target doesn't support "double"
data types, then expect "real" types to only be 4 bytes.
1997-02-07 16:40:39 +00:00
Jeff Law 2f54eeea76 * gdb.c++/virtfunc.exp: Expect failure for virtual function
call tests if the target doesn't support inferior function calls.
1997-02-07 16:34:55 +00:00
Jeff Law ad9f858a45 * gdb.base/printcmds.exp: Allow minor deviation in FP values
in printf tests.
1997-02-07 16:32:42 +00:00
Jeff Law 6382554a6c * gdb.base/help.exp: Disable "help set", "help show", and
"help support".  Simplify regexp for "help stack".
They're causing timeouts, overruns, etc again.
1997-02-06 22:47:57 +00:00
Jeff Law fed72befa9 * gdb.base/default.exp: Set match_max to 5000 and the timeout
to 60 seconds.  Temporarily set match_max to 15000 around the
        "info copying" test.
Fixes timeout/overflow problems for hpux10.20 hosted toolchains.
1997-02-06 21:43:53 +00:00
Jeff Law dada510572 * gdb.base/nodebug.exp: Don't try to do an inferior function
call if the target doesn't support them.
        * gdb.base/printcmds.exp: Likewise.
        * gdb.base/setvar.exp: Likewise.
        * gdb.base/structs.exp: Likewise.
        * gdb.c++/templates.exp: Likewise.
        * gdb.base/ptype.exp: Likewise.  Remove UDI specific stuff.

        * gdb.base/recurse.exp: Enable for the mn10200.

        * configure.in: Do configure gdb.stabs directory for *-*-elf
        targets.
        * configure: Rebuilt.
1997-02-06 20:58:55 +00:00
Jeff Law 0979e7bd28 * gdb.base/break.exp: Check for gdb,noresults before testing
exit status and/or results from the target.
        * gdb.base/watchpoint.exp, gdb.base/langs.exp: Likewise.
        * lib/gdb.exp: Remove old (now bogus) initialization of
        noinferior, noargs, noresults and nosignals.
More cleanups for new testing framework.
1997-02-06 19:50:33 +00:00
Bob Manson b6f32a5bb9 * config/sh.exp: New file.
* config/slite.exp: Try to connect multiple times to the board
	before rebooting. Only send a "monitor run" if need_monitor_run
	is set.

	* gdb.base/break.exp: Don't do the "stub continue" test if
	the target has gdb_stub set.

	* gdb.base/callfuncs.exp: Increase the timeout.

	* gdb.base/interrupt.exp: Don't even try to compile the testcase
	if the target has gdb,noinferiorio set.

	* gdb.base/list.exp: Increase match_max to 10000 characters.

	* gdb.base/sigall.exp: Check for gdb,nosignals on the target.

	* gdb.base/watchpoint.exp: Check for gdb,noinferiorio on the
	target.

	* lib/gdb.exp(gdb_run_cmd): Fix for targets that use stubs.

Misc fixes for sparclite and SH.
1997-02-05 06:25:42 +00:00
Bob Manson 5d05bf0d50 * config/sh.exp: New file.
* config/slite.exp: Try to connect multiple times to the board
	before rebooting. Only send a "monitor run" if need_monitor_run
	is set.

	* gdb.base/break.exp: Don't do the "stub continue" test if
	the target has gdb_stub set.

	* gdb.base/callfuncs.exp: Increase the timeout.

	* gdb.base/interrupt.exp: Don't even try to compile the testcase
	if the target has gdb,noinferiorio set.

	* gdb.base/list.exp: Increase match_max to 10000 characters.

	* gdb.base/sigall.exp: Check for gdb,nosignals on the target.

	* gdb.base/watchpoint.exp: Check for gdb,noinferiorio on the
	target.

	* lib/gdb.exp(gdb_run_cmd): Fix for targets that use stubs.

Misc fixes for sparclite and SH.
1997-02-05 05:59:01 +00:00
Mark Alexander 7d9e8fac1a * mips-tdep.c (mips16_get_imm): Fix calculation of extended immediate.
(mips16_heuristic_proc_desc): Recognize jal(x) instruction.
1997-02-04 17:18:56 +00:00
Mark Alexander b348b9fd0e * mips-tdep.c (mips16_decode_reg_save): Distinguish between
sd and sw instructions correctly.
	(heuristic_proc_start): Add support for MIPS16.
	(mips16_get_imm, mips16_heuristic_proc_desc,
	mips32_heuristic_proc_desc): New helper functions for
	heuristic_proc_desc.
	(heuristic_proc_desc): Rewrite and reorganize to support MIPS16.
	(mips_push_arguments): Don't align small arguments in EABI.
	(mips32_skip_prologue): Attempt to shrink code size a little.
1997-02-04 02:09:33 +00:00
Bob Manson 94b25813b1 * gdb.base/a1-selftest.exp: Make sure we call gdb_exit before
trying to delete the copy of gdb. Catch the file delete so we
 	don't die if the delete fails; also, the file should be copied to
 	the host, not to the build.

Fixes problems when gdb isn't built with debugging.
1997-02-03 20:36:39 +00:00
Michael Snyder fbfa4d54f8 Mon Feb 3 11:06:05 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* m32r-stub.c: New -- remote protocol support for M32R cpu.
        * m32r-rom.c:  Several experiments with improved download time.
        * .Sanitize:   Add entry for m32r-stub.c
1997-02-03 19:18:32 +00:00
Bob Manson 0d8017baad * lib/gdb.exp(gdb_test): Surround the result pattern with
parenthesis in case it contains multiple regexps separated
	with |.

Fixes last nights native failures.

	* gdb.base/watchpoint.exp: Use gdb_test.
	* gdb.base/default.exp: Ditto.

More improvements.
1997-02-03 03:35:42 +00:00
Bob Manson 85fbaa747f * gdb.*/*.exp: Replace $prompt with $gdb_prompt.
* gdb.base/scope.exp: Use gdb_test.
	* gdb.c++/classes.exp: Ditto.
	* gdb.c++/inherit.exp: Ditto.

More random cleanups. Still lots to go, however.
1997-02-02 07:59:25 +00:00
Geoffrey Noer e385d6e03e Committing sanitize changes 1997-02-02 06:49:44 +00:00