Commit Graph

12682 Commits

Author SHA1 Message Date
Ian Lance Taylor
661cf37446 * bout.c (b_out_canonicalize_reloc): Handle SEC_CONSTRUCTOR
sections.
	(b_out_get_reloc_upper_bound): Likewise.
1995-03-28 20:27:35 +00:00
Ian Lance Taylor
da7bfa91fb * linker.c (generic_link_add_symbol_list): Skip constructor
symbols which the main linker code did not do anything with.
	(_bfd_generic_link_output_symbols): Use udata.p if it is set,
	rather than looking the symbol up in the hash table.  Just pass
	through constructor symbols for which udata.p is not set.  If the
	linker defined the symbol, clear the constructor flag.
Fix -r for b.out file format when constructor symbols are defined.
1995-03-28 20:17:37 +00:00
Ken Raeburn
c50e740c11 keep binutils-hppa 1995-03-28 19:44:13 +00:00
Jim Kingdon
d87e77066f * gdb.base/recurse.exp: Make test names unique. Change \\(+ to \\(.
Don't rely on the value of an auto variable before it has been
	initialized.  Use gdb_test more.
1995-03-28 17:33:10 +00:00
Ian Lance Taylor
2e246dbdbd * binutils-all/objcopy.exp: Add setup_xfail for simple copy test
for m68*-ericsson-ose and m88*-*-coff.
1995-03-28 16:19:22 +00:00
Peter Schauer
5522e8a977 * config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM):
Fix definitions.
1995-03-28 06:58:39 +00:00
Peter Schauer
3f403f6ab3 * alpha-nat.c, irix4-nat.c, irix5-nat.c, mipsv4-nat.c,
sparc-tdep.c (supply_gregset, supply_fpregset):  Fill inaccessible
	registers with zero to handle recent read_register_bytes change.
	* irix4-nat.c, irix5-nat.c, mipsv4-nat.c (supply_gregset,
	fill_gregset):  Fix handling of CAUSE_REGNUM.
	* mips-nat.c (store_inferior_registers):  Handle unwritable
	registers when storing a single register.
	* config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM):
	Fix definitions.

	* mdebugread.c (parse_symbol, psymtab_to_symtab_1):  Clear
	allocated mips_extra_func_info, if the debug info is corrupt,
	the PDR to fill it in might be missing.
1995-03-28 06:57:39 +00:00
Kung Hsu
3b94a0b871 * vx-share/regPacket.h: a new file interfacing with vxworks. 1995-03-27 22:47:04 +00:00
J.T. Conklin
057af5c96c * run.c: parse arguments with getopt(). 1995-03-27 18:49:58 +00:00
Ian Lance Taylor
8b550686c0 * binutils-all/objcopy.exp: Add setup_xfail for simply copy test
for m68*-*-vxworks*.
1995-03-27 16:28:16 +00:00
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