Commit Graph

12811 Commits

Author SHA1 Message Date
Stu Grossman
a25a9f49ca * configure.in: Move test for m68*-est-* before m68*-*-coff*.
* findvar.c:  Move default def of CANNOT_STORE_REGISTER closer to
	the beginning of the code.
	* (write_register_gen):  New routine.  Analogous to
	read_register_gen.
	* (write_register_bytes):  Another rewrite!  Make it smarter about
	not updating regs with the same value.
	* monitor.c (printf_monitor readchar):  Use stderr instead of
	stdout to output debug info.  Also cleanup readchar a little.
	* (expect):  Make sure that excessive responses are null
	terminated.
	* (monitor_open):  Check for magic number in monitor_ops struct.
	Allow multiple commands as init strings.  Also, clear all
	breakpoints.
	* (monitor_resume monitor_wait):  Send a command to dump all the
	regs for those targets which don't do so when waking up after a
	continue command.
	* (monitor_wait):  Handle excessive response output better.
	* (monitor_write_memory):  Use block fill, word, and long word
	commands (if they exist) to write memory more efficiently.
	* General cleanups to use flag bits instead of individual flag
	words in monitor_ops struct.
	* (monitor_command):  Return output from command.
	* (monitor_load_srec):  Allocate buffer only once.  Use alloca.
	Wait for load response string instead of using a timeout to start
	sending S-records.  Fix bug where value of srec_frame shrinks.  If
	hashmark is set, print `-' for retransmissions.  General cleanups.
	* (monitor_make_srec):  Get rid of S-record default type kludge.
	* monitor.h:  Use seperate struct for memory and register
	read/write commands.  Memory commands can come in byte, word,
	long, and longlong forms.
	* (monitor_ops):  Change lots of fields.  Generalize some stuff.
	Put all flags into flags word.  Allow init to be a list of commands.
	Add command for clearing all breakpoints, block fill, dumping all
	registers.
	* remote-est.c:  Rewrite to use new monitor conventions.
	* config/m68k/est.mt (TDEPFILES):  Add monitor.o.
	* config/m68k/tm-est.h:  Set NUM_REGS to 18.
	* testsuite/gdb.base/break.exp:  Lots of cleanups.  Use gdb_test
	more thoroughly.
1995-03-25 00:36:01 +00:00
Jim Kingdon
1ef0c066d9 * gdb.base/a1-selftest.exp (test_with_self): Remove comment which
apparently went with a (very) old xfail.
1995-03-24 23:06:46 +00:00
Kung Hsu
c86bd3d41b * gdb.base/callfuncs.exp: call runto_main instead of runto main.
runto_main is a proc in gdb.exp that will do 'step' for target use
        stubs.
        * gdb.base/exprs.exp: ditto.
        * gdb.base/interrupt.exp: ditto.
        * gdb.base/opaque.exp: ditto.
        * gdb.base/printcmds.exp: ditto.
        * gdb.base/ptype.exp: ditto.
        * gdb.base/scope.exp: ditto.
        * gdb.base/setvar.exp: ditto.
        * gdb.base/signals.exp: ditto.
        * gdb.base/twice.exp: ditto.
        * gdb.base/break.exp: no run and hit main for stubs. Change line
        numbers for breakpoints and info breakpoint.
        * gdb.base/break.c: Add #ifdef usestubs for set_debug_traps() and
        breakpoint().
        * gdb.base/callfuncs.c: ditto.
        * gdb.base/exprs: ditto.
        * gdb.base/interrupt.c: ditto.
        * gdb.base/opaque0.c: ditto.
        * gdb.base/printcmds.c: ditto.
        * gdb.base/ptype.c: ditto.
        * gdb.base/scope0.c: ditto.
        * gdb.base/setvar.c: ditto.
        * gdb.base/signals.c: ditto.
        * gdb.base/twice.c: ditto.
1995-03-24 22:06:00 +00:00
Kung Hsu
a302b5c219 * gdb.base/callfuncs.exp: call runto_main instead of runto main.
runto_main is a proc in gdb.exp that will do 'step' for target use
        stubs.
        * gdb.base/exprs.exp: ditto.
        * gdb.base/interrupt.exp: ditto.
        * gdb.base/opaque.exp: ditto.
        * gdb.base/printcmds.exp: ditto.
        * gdb.base/ptype.exp: ditto.
        * gdb.base/scope.exp: ditto.
        * gdb.base/setvar.exp: ditto.
        * gdb.base/signals.exp: ditto.
        * gdb.base/twice.exp: ditto.
        * gdb.c++/classes.exp: ditto.
        * gdb.c++/inherit.exp: ditto.
        * gdb.c++/templates.exp: ditto.
        * gdb.base/break.exp: no run and hit main for stubs. Change line
        numbers for breakpoints and info breakpoint.
        * gdb.base/break.c: Add #ifdef usestubs for set_debug_traps() and
        breakpoint().
        * gdb.base/callfuncs.c: ditto.
        * gdb.base/exprs: ditto.
        * gdb.base/interrupt.c: ditto.
        * gdb.base/opaque0.c: ditto.
        * gdb.base/printcmds.c: ditto.
        * gdb.base/ptype.c: ditto.
        * gdb.base/scope0.c: ditto.
        * gdb.base/setvar.c: ditto.
        * gdb.base/signals.c: ditto.
        * gdb.base/twice.c: ditto.
        * gdb.c++/misc.cc: ditto.
        * gdb.c++/templates.cc: ditto.
1995-03-24 22:02:15 +00:00
Jim Kingdon
8c7ab5da73 * config/vx-gdb.exp, lib/gdb.exp: Regexp cleanups (\[(\] -> \\(, etc.). 1995-03-24 20:05:28 +00:00
Ian Lance Taylor
fb3f84c773 * strings.c: Include "bfd.h" before other headers. Include
"sysdep.h".
	* bucomm.c (print_arelt_descr): Cast st_uid and st_gid to long,
	and print them with %ld.
1995-03-24 16:49:14 +00:00
Ian Lance Taylor
fe58e49642 * binutils-hppa/objdump.exp: Correct hppa*-*-* check. 1995-03-24 16:46:02 +00:00
Jim Kingdon
ac35a0030e * gdb.base/a1-selftest.exp: Don't check for # followed by a digit
somewhere between `read' and `main.c'.  I'm pretty sure the
	pattern ".*#\[0-9\].*" was slowing down pattern matching a lot,
	and it isn't particularly useful.
1995-03-24 16:38:06 +00:00
Jim Kingdon
6e131ad8e1 * gdb.base/scope.exp: Make test names unique. \[(\] -> \\(. 1995-03-24 14:13:35 +00:00
Jeff Law
9bfed1ee34 * somsolib.c (som_solib_add): Handle case where a shared library
referenced by a core file has sections without the SEC_ALLOC bit
        set (eg stabs sections).
1995-03-24 06:21:44 +00:00
Jim Kingdon
91e3c24670 * gdb.base/commands.exp (infrun_breakpoint_command_test): New test. 1995-03-23 23:36:33 +00:00
Jim Kingdon
1c04536e70 * breakpoint.c (bpstat_do_actions): For each element in the bpstat
chain, do all the commands regardless of whether they run the
	inferior.
1995-03-23 23:35:00 +00:00
David Edelsohn
aa949c081f * mem-break.c (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Define as
BREAKPOINT if mono-endian.
	(break_insn): Deleted.
	(big_break_insn, little_break_insn): Define.
	(memory_insert_breakpoint): Handle bi-endian cpus.
	(BREAKPOINT_LEN): Define.
	(memory_remove_breakpoint): Use it.
	(memory_breakpoint_size): Likewise.
1995-03-23 03:39:24 +00:00
Kung Hsu
40ee1402e0 * config/mt-slite: add LIBS and -nostdlib.
* config/slite-gdb.exp: add this new file to support sparclite target.
1995-03-23 02:38:39 +00:00
David Edelsohn
11c54b4f40 * config/vx-gdb.exp (gdb_load): Update test of vxworks_ld return code. 1995-03-22 05:42:22 +00:00
David Edelsohn
948121f227 * gdb.base/a2-run.exp: Change argument to istarget from
"*-*-vxworks" to "*-*-vxworks*".
* gdb.base/{break.exp,default.exp,scope.exp}: Likewise.
1995-03-22 04:54:35 +00:00
David Edelsohn
e965bc396d Change argument to istarget from "*-*-vxworks" to "*-*-vxworks*". 1995-03-22 04:52:25 +00:00
Kung Hsu
1c2258cc42 * lib/gdb.exp: add proc runto_main, for targets that use stubs, this
will not runto main but do a 'step' to step out of breakpoint().
        * config/mt-slite: add -Dusestubs.
1995-03-22 01:13:08 +00:00
Kung Hsu
0c4517b5f1 * config/mt-slite: add -Dusestubs. 1995-03-22 01:12:04 +00:00
Kung Hsu
120edc2f7c * lib/gdb.exp: add proc runto_main, for targets that use stubs, this
will not runto main but do a 'step' to step out of breakpoint().
1995-03-22 01:11:34 +00:00
Kung Hsu
9cc2cd4f7a * sparc-stub.c: add nop after 'bg good_wim'.
* sparcl-stub.c: ditto.
1995-03-22 01:06:36 +00:00
Jim Kingdon
8abe0b3d40 * gdb.base/printcmds.exp (test_artificial_arrays): Send ^V@
instead of just @.
1995-03-21 22:24:00 +00:00
Jim Kingdon
0926990e46 * gdb.base/signals.exp: Add test for "handle all print".
* TODO: Remove "handle all print".  Also remove item about
	checking copyright date (I don't like the idea of a spurious FAIL
	based on when we run the tests).
1995-03-21 22:02:06 +00:00
Jim Kingdon
1968ed139f * infrun.c (handle_command): Don't print TARGET_SIGNAL_0,
TARGET_SIGNAL_UNKNOWN, or TARGET_SIGNAL_DEFAULT.
1995-03-21 21:59:03 +00:00
Ian Lance Taylor
350f083c5f * config/tc-mips.c (md_show_usage): Mention -mips4 and -m4650. 1995-03-21 21:54:25 +00:00
Jim Kingdon
31a425c34d * gdb.base/recurse.exp: Enable test for SunOS4. xfail one test
for SunOS4 (reason for failure not investigated).  Remove
	redundant test for $binfile.
1995-03-21 21:12:24 +00:00
Jim Kingdon
edcea3757d * gdb.base/nodebug.c (array_index): Call malloc. 1995-03-21 21:01:53 +00:00
Jim Kingdon
1d30b94822 * gdb.base/{corefile.exp,default.exp}: Make names of "up" tests unique. 1995-03-21 20:17:49 +00:00
Ian Lance Taylor
68233e44d9 * ldlang.c (lang_common): Change power to int. Pass larger values
before smaller values.
	(lang_one_common): Treat info as int *.  Don't bother to check for
	last value, since it is now zero.
1995-03-21 20:17:07 +00:00
Jim Kingdon
c8de4c8ba6 * tuples.exp (do_tests): Make names of "print v_ps" test unique. 1995-03-21 20:11:37 +00:00
Jeff Law
973f38b69e * binutils-hppa/addendbug.s: New testcase.
* binutils-hppa/objdump.exp: Run it.
1995-03-21 17:49:53 +00:00
Jeff Law
9f2c5c9751 * gas/hppa/unsorted/common.s: New test.
* gas/hppa/unsorted/unsorted.exp: Run it.
1995-03-21 05:47:14 +00:00
Jeff Law
6adcecef34 * som.c (som_slurp_symbol_table): Tighten test to determine
what symbols are section symbols.
1995-03-21 05:40:30 +00:00
Stu Grossman
efe4e52d90 * config/m68k/tm-m68k.h: Define D0_REGNUM and A0_REGNUM for register
dump handling.
1995-03-20 23:41:51 +00:00
Stu Grossman
9bb6f28b4e * findvar.c (read_register_bytes write_register_bytes): Make
these routines much smarter about updating registers from the
	target, only doing so when absolutely necessary.  This really
	speeds up register modification on some remote targets.

	* monitor.c:  More cleanups.  Get rid of monitor_load_ascii_srec.
	BFD makes this unnecessary.  Lots of debugging speedups.
	* (expect):  NULL terminate return string.
	* (monitor_open	monitor_supply_register parse_register_dump
	monitor_wait monitor_fetch_register):  Switch to using GNU regexp
	library to parse multi-register displays.
	* (monitor_read_memory): Read multiple bytes (up to 16) at once.
	* (monitor_create_inferior):  Call clear_proceed_status to make run
	command notice first breakpoint.
	* (monitor_load):  Clean up.  Reset inferior_pid, set pc to start
	address and reset symbol table stuff to make loads put things into
	a fresh state.
	* (monitor_load_srec):  Lower sleep time to 1 second.

	* monitor.h (struct monitor_ops):  Add register_pattern and
	supply_register to monitor_ops.

	* rom68k-rom.c:  Add new support for handling register dumps.
	* config/m68k/tm-m68k.h:  Define D0_REGNUM and A0_REGNUM for register
	dump handling.
1995-03-20 23:40:33 +00:00
Ian Lance Taylor
a07fe45057 * lib/utils-lib.exp (default_binutils_run): Quote any dollar signs
in progargs before passing it to exec.
1995-03-20 19:31:58 +00:00
Jeff Law
e6059f4aaf * hppab-nat.c (store_inferior_registers): Sync with HPUX version. 1995-03-20 17:11:35 +00:00
Jeff Law
eead772be8 * gdb.base/recurse.exp: Update gdb_test invocation to use new
conventions and slightly simplify the matching regexp.
1995-03-20 17:09:25 +00:00
Stu Grossman
a15f6b0a8e * hppah-nat.c (store_inferior_registers): Move check for
CANNOT_STORE_REGISTER to a better place.  Fixes ptrace I/O errors
	found by test suite during function calls, which attempts to write
	unwritable registers.
1995-03-20 15:38:56 +00:00
Peter Schauer
5c26250b95 * mdebugread.c (parse_symbol): If finishing a function without
known parameter type info, set that from parameter symbols.
	Remove commented-out add_param_to_type support.
1995-03-18 13:16:51 +00:00
Ian Lance Taylor
4da1dceac5 tipo 1995-03-18 06:56:51 +00:00
Ian Lance Taylor
03788f0539 * elfcode.h (elf_bfd_link_add_symbols): An empty archive is OK. 1995-03-18 06:56:00 +00:00
Ian Lance Taylor
f400bbbb4f * ldlang.c (load_symbols): An empty is archive is OK. 1995-03-18 06:53:14 +00:00
Stan Shebs
f64fd87f2b * mpw-config.in (TDEFINES): Put empty definition into
makefile fragment.
	* mpw-make.in (xmalloc.c.o): Remove.
	(as.new): Depend on Version.r.
	(Version.r): Generate from version info.
1995-03-18 00:50:51 +00:00
Stan Shebs
a42e48f616 * mpw-configure: Revert previous move of target_cpu
calculation, mpw-config.in needs it.
	* mpw-config.in: Add generic include forwards for cpu-specific
	include files in aout and elf directories.
1995-03-18 00:42:17 +00:00
Stan Shebs
af4925f19e * mpw-config.in (TDEFINES): Define as empty in makefile frag. 1995-03-18 00:23:15 +00:00
Stan Shebs
6e49f018bc update for changed mpw filename 1995-03-18 00:14:30 +00:00
Stan Shebs
ab4ccfd5bc * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
(i386-unknown-coff): Remove.
	(sh-hitachi-hms): New target.
	(emulation_ofiles): Set correctly for each target.
	(version, TDEFINES): Add to makefile fragment.
	* mpw-make.in (BISON): Use byacc instead of bison.
	(em_*.c): Replace with e*.c everywhere.
	(ldgram.h): Separate action from ldgram.c generation.
	(LD_PROG): Depend on Version.r.
	(Version.r): generate from version info.
	* mpw-em.c: Remove.
	* mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
1995-03-18 00:13:26 +00:00
Jeff Law
b76eed6c1d * config/hppa.sed: Sed script to transform bintest.s into proper
PA assembly code.
	* binutils-all/nm.exp: Enable these tests on the PA.
	* binutils-all/objcopy.exp: Enable these tests on the PA.  Expect
	simple copy to fail.
	* binutils-all/objdump.exp: Enable these tests on the PA.  Handle
	"CODE" as a section name.
	* binutils-all/size.exp: Enable these tests on the PA.
	* lib/utils-lib.exp (default_binutils_assemble): For "hppa*-*-*",
	run the assembly through a sed script before passing it to the
	assembler.
1995-03-17 23:45:36 +00:00
Stan Shebs
e70a10c35a * mpw-config.in (i386-unknown-go32): Change from aout.
(sh-hitachi-hms): New target.
	* mpw-make.in (BISON): Use byacc instead of bison.
	(VERSION): Bump to 4.14.1.
	(*-pinsn.*): Remove mentions everywhere.
	(all): Don't build MacGDB.
	(gdb, SiowGDB): Depend on Version.r.
	(Version.r): Generate from version info.
	* main.c (main): Pass program name to START_PROGRESS, END_PROGRESS.
	(main) [MPW]: Remove debugging hook.
	* mac-xdep.c (debug_openp): New flag.
	(mac_init): Set flag if env variable defined.
	* ser-mac.c (mac_open): Clarify error message.
	(mac_readchar): Call PROGRESS while looping.
	(mac_write): Call sleep instead of sec_sleep.
	(sec_sleep): Remove.
	* source.c (openp) [MPW]: Only print debugging info if debugging.
	* utils.c (query) [MPW]: Clarify that behavior is a bug.
1995-03-17 23:21:12 +00:00