Commit Graph

12672 Commits

Author SHA1 Message Date
Ian Lance Taylor a735edad13 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
does mark shared libraries as executable.
1995-03-27 16:11:22 +00:00
Jim Kingdon b34b32e7f9 * lib/gdb.exp (default_gdb_version): A version number must start
with a digit, but other than that contains all characters up to
	the first whitespace character.
1995-03-27 16:05:08 +00:00
Jim Kingdon d894a6e99b * gdb.base/commands.exp (breakpoint_command_test): New tests. 1995-03-26 21:43:41 +00:00
Jim Kingdon d582898a7d * breakpoint.c (bpstat_do_actions): Once we've executed the
commands, set bs->commands to NULL.
1995-03-26 21:39:51 +00:00
Jim Kingdon 74cb8a369b * gdb.c++/*.exp: Warn if executable does not exist. The original
reason for skipping the warning was that configure.in sometimes
	intentionally skipped building the executables but the tcl code
	had no way of knowing.  That (a) was always bogus with respect to
	error handling, (b) is no longer true (right now there is no way
	to skip C++ tests).

	* gdb.c++/demangle.exp: Remove unused binfile and srcfile variables.
1995-03-25 23:46:43 +00:00
Peter Schauer 766de354a8 * gdb.base/list.exp: Add expect patterns for output from
SunPRO compiled executables.
	* gdb.base/whatis.exp:  Allow leading `signed' for all v_signed_*
	types.
1995-03-25 09:26:16 +00:00
Peter Schauer 736268e5fa * sparc-tdep.c, config/sparc/tm-sun4sol2.h
(sunpro_static_transform_name):  Renamed from
	solaris_static_transform_name.
	* config/sparc/tm-sun4os4.h (STATIC_TRANSFORM_NAME):
	Define to sunpro_static_transform_name for acc 3.0 compiled
	executables.
1995-03-25 09:25:06 +00:00
Peter Schauer b9e585030c * buildsym.c (patch_subfile_name): Update last_source_file
with the real source file name.
	* dbxread.c (end_psymtab):  Handle static functions in the
	SOFUN_ADDRESS_MAYBE_MISSING case by passing pst->filename
	to lookup_minimal_symbol.
	(process_one_symbol):  Ignore extra outermost context from
	SunPRO cc and acc.
	* stabsread.c (define_symbol):  Do not complain for SunPRO
	static variable encoding if STATIC_TRANSFORM_NAME is defined.
	* sparc-tdep.c, config/sparc/tm-sun4sol2.h
	(sunpro_static_transform_name):  Renamed from
	solaris_static_transform_name.
	* config/sparc/tm-sun4os4.h (STATIC_TRANSFORM_NAME):
	Define to sunpro_static_transform_name for acc 3.0 compiled
	executables.
	* procfs.c, config/alpha/nm-osf2.h (PROCFS_DONT_TRACE_FAULTS):
	Renamed from PROCFS_DONT_TRACE_IFAULT, don't trace any faults
	if defined.
	* procfs.c (info_proc_siginfo):  Cast sip->si_addr to
	`unsigned long' and use `lx' format for printing it.
1995-03-25 09:23:10 +00:00
Jim Kingdon 62f2c80802 * gdb.base/break.exp (test_next_with_recursion): Accept any line
number (we are already testing that the correct source line text
	gets printed).

	* gdb.base/break.exp: Make one test if $usestubs.  I'm not sure
	that is what is intended, but something needed to be done to get
	sunos4 native working again.

	* gdb.c++/misc.cc (main): Fix typo (#iffef -> #ifdef).
1995-03-25 06:01:20 +00:00
Stu Grossman 1a7f57e783 * 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:41:54 +00:00
Stu Grossman 8acb0655a0 New file for controlling the EST. 1995-03-25 00:37:09 +00:00
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