Commit graph

12733 commits

Author SHA1 Message Date
Stu Grossman
7952bce6fc * monitor.c: make_xmodem_packet and print_xmodem_packet go away.
send_xmodem_packet shows up to do the obvious.  Lots of fixes to
	xmodem downloads including resetting of block number at start of
	new transfers, fix for buffer overrun problem, addition of CRC
	generation code.
	* (monitor_open):  loadtype_str and loadproto_str now default to
	first entry in monitor_ops->loadtypes.
	* (monitor_wait):  Lengthen register dump buf, because of verbose
	Winbond monitor.
	* (monitor_fetch_register):  Report unimplemented registers as 0.
	* (monitor_read_memory):  Only do 16 byte aligned transfers
	because of formatting weirdness with the Winbond monitor.  Also,
	ignore non-hex, non-whitespace formatting between bytes (same
	monitor).
	* (monitor_load):  Clean up logic.
	* (monitor_load_srec):  Re-do xmodem support.  Move lots of it
	into send_xmodem_packet.
	* (getacknak):  Get rid of polls and timeouts.  Handle CRC
	requests from receiver.
	* (monitor_make_srec):  Efficiency improvements.  Don't call
	sprintf to output two digit hex numbers.
	* (crcinit, docrc):  New, CRC-16 support routines.
	* (send_xmodem_packet):  New routine to generate either CRC-16 or
	checksummed xmodem packets.

	* remote-est.c (est_loadtypes), rom68k-rom.c (rom68k_loadtypes):
	Reduce tables down to only the load types supported by each
	monitor.

	* w89k-rom.c  (w89k_supply_register):  Parses output of Winbond
	register dumps.
	* (w89k_loadtypes, w89k_loadprotos):  Reduce to just srec/xmodem.
	* (w89k_cmds):  Add clear all breakpoints, memory fill, and dump
	registers commands.
1995-04-08 01:05:01 +00:00
David Edelsohn
1a56be5c4f * arc-dis.c (print_insn): New parameter `big_p'. Callers updated.
Call arc_get_opcode_mach to map bfd mach number to opcode value.
	(print_insn_*): Pass bfd mach number, not opcode version.
	* arc-opc.c (arc_get_opcode_mach): New function.
1995-04-07 03:54:08 +00:00
David Edelsohn
7e87eb1342 * emulparams/arcelf.sh (ENTRY): Define. 1995-04-07 03:40:15 +00:00
David Edelsohn
4ad003d1d7 * arc.h (arc_get_opcode_mach): Define prototype. 1995-04-07 03:38:05 +00:00
David Edelsohn
47ba63b2bb ARC stuff. 1995-04-07 03:14:12 +00:00
David Edelsohn
5acf432d3f * config/tc-arc.c (arc_condition_codes): Deleted.
(init_opcode_tables): Delete cpu_type_map, call
	arc_get_opcode_mach instead.
	(arc_common): Delete non-ELF stuff.  Require leading '.' in .data.
	(md_apply_fix): Delete non-ELF stuff.
	Disable special handling of limm values, treat them normally.
	(get_arc_exp_reloc_type): New argument `data_p'.  Callers updated.
	(md_assemble): All limm operands must be output by gas, the opcode
	insertion routines cannot be used (they don't do anything and we're
	using implicit addends now so we need to output something).
	* config/tc-arc.h (FAKE_LABEL_NAME): Define.
1995-04-07 03:13:42 +00:00
Michael Meissner
77a8995732 Initial Linux ELF support. 1995-04-06 21:08:05 +00:00
Jim Kingdon
84ccb88752 * gdb.base/break.exp: Remove commented out if $usestubs {}. As
nearly as I can tell, the whole thing was an accident in Stu's
	change of 24 Mar 1995 (logged in ../ChangeLog), in which he meant
	to replace a send/expect pair with gdb_test, but ended up only
	adding the gdb_test.  My change of 24 Mar 1995 and Kung's change
	of 30 Mar 1995 took care of it, but left this vestigial comment
	which I am now nuking.
1995-04-06 15:59:34 +00:00
Jim Kingdon
8066e4344e * mips-tdep.c (mips_print_register): Remove unused variable
our_type and call to init_type.  Fixes memory leak.  Reindent function.

	* mips-tdep.c (mips_print_register), findvar.c
	(write_register_bytes): Make buffer char[] instead of unsigned
	char[].
1995-04-06 03:03:12 +00:00
Jeff Law
fcca5c83d5 Keep hppa. 1995-04-04 20:52:24 +00:00
Jeff Law
084888170a binutils-hppa no longer exists. 1995-04-04 20:51:04 +00:00
Jim Kingdon
dee803840d * top.c, utils.c, main.c: Replace error_pre_print with two
variables: error_pre_print (for RETURN_ERROR) and quit_pre_print
	(for RETURN_QUIT).  Fixes a bug whereby typing ^C (e.g. in "maint
	print sym") could output extraneous stuff.
	* objfiles.c: Don't declare error_pre_print; defs.h does it.
1995-04-04 20:07:21 +00:00
Stan Shebs
01c32fc42c Always keep MPW subdir 1995-04-04 19:58:09 +00:00
Stan Shebs
241d8883ed Always keep all MPW support files 1995-04-04 19:53:04 +00:00
Stan Shebs
3da0c638f8 No longer need MPW-only history 1995-04-04 19:51:10 +00:00
Stu Grossman
3da4297eae * monitor.h: Add MO_GETMEM_NEEDS_RANGE flag.
* monitor.c (monitor_read_memory):  Use previously mentioned flag
	to send proper format memory examine commands to the w89k monitor.
	Also, try to handle bizarre format of memory dump...

	* op50-rom.c w89k-rom.c:  Update to new monitor.[ch] conventions.
1995-04-03 21:03:27 +00:00
Peter Schauer
4507de2d18 * gdb.base/list.exp: Adjust some alternate expect patterns to
match recent list0.c change. Add alternate expect pattern for
	output from `list default lines around main' for optimizing
	compilers.
1995-04-02 15:22:04 +00:00
Jim Kingdon
24b2699965 * lib/gdb.exp: If nosignals is not set, set it to 0. 1995-04-01 15:31:24 +00:00
Peter Schauer
576c39135f * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
Handle relocated symbol address.
	* partial-stab.h, case N_SO, SOFUN_ADDRESS_MAYBE_MISSING:
	Do not relocate a zero address.
1995-04-01 11:24:43 +00:00
Kung Hsu
241b4dff18 * config/slite-gdb.exp: Responds to load symbol table prompt.
* gdb.base/break.exp: Adjust line number, fix rerun.
        * gdb.base/langs0.c: Add #ifdef usestubs.
1995-04-01 00:17:52 +00:00
Kung Hsu
4d1edc2e85 * gdb.base/break.exp: Adjust line number, fix rerun.
* gdb.base/langs0.c: Add #ifdef usestubs.
1995-04-01 00:17:12 +00:00
Kung Hsu
4729c3e2ca * config/slite-gdb.exp: Responds to load symbol table prompt. 1995-04-01 00:16:39 +00:00
Jason Molenda
6764c4cdad add mt-netware to things-to-keep 1995-03-31 19:42:28 +00:00
Jason Molenda
138e85322b * Makefile.in: define empty GDB_NLM_DEPS var.
* configure.in(target_makefile_frag): use config/mt-netware
        for netware targets.

all-gdb only builds all-gcc and all-ld if we're building for a netware
target.
1995-03-31 19:41:26 +00:00
Jason Molenda
b062e55c5f * mt-netware: New file.
define GDB_NLM_DEPS for netware targets.
1995-03-31 19:36:08 +00:00
Jim Kingdon
7c7c4f0a22 * config/a29k/tm-a29k.h: Nuke obsolete define CONTROL_END_ADDR; it
is nowhere used.
1995-03-31 03:58:27 +00:00
Jim Kingdon
23a1346e20 * stabsread.c (read_range_type): Remove FIXME comment about
type-id (I presume this meant a number followed by = followed by a
	type) versus type number; Per fixed it.
1995-03-31 03:52:28 +00:00
Kung Hsu
a04abeccfc * gdb.base/list.exp: Adjust line contents after adding new lines in
list0.c. Also fix a syntax error.
1995-03-31 02:09:59 +00:00
Kung Hsu
6413ee42db * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.
* gdb.base/break.exp: ditto.
        * gdb.base/list.exp: ditto.
        * gdb.base/bitfields.c: Add #ifdef usestubs in main().
        * gdb.base/run.c: ditto.
        * gdb.base/list0.c: ditto.
        * gdb.base/funcargs.c: ditto.
1995-03-31 00:43:47 +00:00
Kung Hsu
065924f7de * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs. 1995-03-31 00:43:12 +00:00
Ian Lance Taylor
59b4c1998a Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
* configure.in: Change linux to default to elf.  Using
	i[345]86-*-linuxaout will build a linker which defaults to a.out.
	* config/i386-laout.mt: Rename from old config/i386-linux.mt.
	* config/i386-linux.mt: Rename from old config/i386-lelf.mt.
	* config/i386-lelf.mt: Remove.
1995-03-30 19:42:38 +00:00
Ian Lance Taylor
e83f77457b Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
* config.bfd: Change linux to default to elf.  Using
	i[345]86-*-linuxaout will build a library which defaults to a.out.
	* config/i386-laout.mt: Rename from old config/i386-linux.mt.
	* config/i386-linux.mt: Rename from old config/i386-lelf.mt.
	Comment out EXTRALIBS.
	* config/i386-lelf.mt: Remove.
1995-03-30 19:37:22 +00:00
Ian Lance Taylor
c2a4f18cef * config.sub: Remove linux special cases. 1995-03-30 19:19:25 +00:00
Ian Lance Taylor
84849c9c15 * config.sub: Merge in recent FSF changes. 1995-03-30 18:57:09 +00:00
Ian Lance Taylor
e920526d00 * ld.texinfo, ld.1: Document the -no-keep-memory option. 1995-03-30 18:10:51 +00:00
Stu Grossman
f66a790207 Move testsuite entries from gdb's ChangeLog to here. 1995-03-30 18:03:04 +00:00
Stu Grossman
194559c48a Move testsuite entries into testsuite/ChangeLog. 1995-03-30 18:00:19 +00:00
Stan Shebs
1e1dd17536 Wed Mar 29 09:56:04 1995 Jason Molenda (crash@phydeaux.cygnus.com)
* configure.in: sparc-*-sunos5* is same as sparc-*-solaris2*.
1995-03-30 03:09:35 +00:00
Stan Shebs
a2f0cf2f40 * remote-e7000.c (why_stop): Add new kinds of strings to expect
from the emulator.
	(e7000_wait): Add interpretations for more stop reasons,
	including warnings for write protect and cycle address errors.
1995-03-30 02:43:50 +00:00
Stu Grossman
a706069fdb start-sanitize-gdbtk
* Makefile.in (gdbtk.o):  Use X11_CFLAGS to provide alternate
	locations (per-host) for X11 include files.
	* config/pa/hppahpux.mh (XM_CLIBS):  Add -L/usr/lib/X11R5 to force
	the use of R5 libs.  (X11_CFLAGS):  Add this to indicate the locs
	of the R5 include files.
end-sanitize-gdbtk
	* monitor.c monitor.h remote-est.c rom68k-rom.c:  Add start of
	support for interrupting target.
	* monitor.c (monitor_open):  Send stop command before doing
	anything else.
	* (monitor_load_srec):  Fix record size calculation to prevent end
	of segment from getting trashed.
	* rom68k-rom.c:  Update to latest version of struct monitor_ops.
	* config/sparc/tm-sparc.h (FIX_CALL_DUMMY):  Fix byte-order
	problems.  Makes DOS hosted function calling work.
	* sparclite/crt0.s:  Define _start to make COFF happy.
	* testsuite/config/rom68k.exp (gdb_target_rom68k):  Use
	$targetname, $serialport and $baud instead of hardwired variables.
	* testsuite/gdb.base/{sigall.exp signals.exp}:  Skip these if the
	target doesn't support signals.
1995-03-30 01:47:32 +00:00
Torbjorn Granlund
6d7bcd2f26 Changes for hosting on 64 bit machines. 1995-03-30 01:18:40 +00:00
Kung Hsu
3c23a941c3 * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1. 1995-03-29 20:31:26 +00:00
Ian Lance Taylor
21e061e3f8 * coff-i960.c (coff_i960_relocate): Cache the section symbol in
the used_by_bfd field of the section, to avoid looping for each
	reloc.
PR 6638.
1995-03-29 18:20:33 +00:00
Ian Lance Taylor
75afa8846b * cpu-h8500.c (arch_info_struct): Change name from "H8/300" to
"h8300" for consistency with other cpu-* files.
1995-03-29 17:02:34 +00:00
Michael Meissner
3e8fdb61ce Do not declare atof if it is a macro. 1995-03-29 14:13:43 +00:00
Peter Schauer
e137e850dc * rs6000-tdep.c (skip_prologue): Skip saving of LR and CR in
the stack frame, fix typos in `st rx,NUM(r1)' and `stu r1,NUM(r1)'
	tests.
1995-03-29 08:16:05 +00:00
Per Bothner
09dde10060 * pr-6632.ch, pr-6632-grt.ch, pr-6632.exp, Makefile.in: New test case. 1995-03-29 01:15:04 +00:00
Per Bothner
e55a579687 * gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUB
set, set TYPE_FLAG_TARGET_STUB.
	(check_stub_type):  Recalculate TYPE_LENGTH for range type.
	* stabsread.c (read_range_type):  If index type number is followed
	by '=', back up, call read_type. and assume we have a true range.
	* gdbtypes.h (TYPE_FLAG_TARGET_STUB):  Update comment.
This fixes PR 6632.
1995-03-29 01:11:45 +00:00
J.T. Conklin
7d777b91ad * remote.texi (NetWare): Changed example to use BOARD= instead of
NODE= argument to reflect correspoding change to gdbserve.nlm.
1995-03-29 00:57:44 +00:00
Jeff Law
0cd908d2b9 Add entry I forgot to commit:
* som.c (som_set_reloc_info): Sign extend constants from
        R_DATA_OVERRIDE fixups.
        * libhppa.h (sign_extend): Renamed from sign_ext.  Fix.
        (low_sign_extend): Likewise.
1995-03-28 23:28:50 +00:00