external/binutils.git
29 years ago * monitor.h: Add MO_GETMEM_NEEDS_RANGE flag.
Stu Grossman [Mon, 3 Apr 1995 21:03:27 +0000 (21:03 +0000)]
* 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.

29 years ago * gdb.base/list.exp: Adjust some alternate expect patterns to
Peter Schauer [Sun, 2 Apr 1995 15:22:04 +0000 (15:22 +0000)]
* 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.

29 years ago* lib/gdb.exp: If nosignals is not set, set it to 0.
Jim Kingdon [Sat, 1 Apr 1995 15:31:24 +0000 (15:31 +0000)]
* lib/gdb.exp: If nosignals is not set, set it to 0.

29 years ago * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
Peter Schauer [Sat, 1 Apr 1995 11:24:43 +0000 (11:24 +0000)]
* 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.

29 years ago * config/slite-gdb.exp: Responds to load symbol table prompt.
Kung Hsu [Sat, 1 Apr 1995 00:17:52 +0000 (00:17 +0000)]
    * 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.

29 years ago * gdb.base/break.exp: Adjust line number, fix rerun.
Kung Hsu [Sat, 1 Apr 1995 00:17:12 +0000 (00:17 +0000)]
    * gdb.base/break.exp: Adjust line number, fix rerun.
        * gdb.base/langs0.c: Add #ifdef usestubs.

29 years ago * config/slite-gdb.exp: Responds to load symbol table prompt.
Kung Hsu [Sat, 1 Apr 1995 00:16:39 +0000 (00:16 +0000)]
    * config/slite-gdb.exp: Responds to load symbol table prompt.

29 years agoadd mt-netware to things-to-keep
Jason Molenda [Fri, 31 Mar 1995 19:42:28 +0000 (19:42 +0000)]
add mt-netware to things-to-keep

29 years ago * Makefile.in: define empty GDB_NLM_DEPS var.
Jason Molenda [Fri, 31 Mar 1995 19:41:26 +0000 (19:41 +0000)]
    * 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.

29 years ago * mt-netware: New file.
Jason Molenda [Fri, 31 Mar 1995 19:36:08 +0000 (19:36 +0000)]
    * mt-netware: New file.

define GDB_NLM_DEPS for netware targets.

29 years ago * config/a29k/tm-a29k.h: Nuke obsolete define CONTROL_END_ADDR; it
Jim Kingdon [Fri, 31 Mar 1995 03:58:27 +0000 (03:58 +0000)]
* config/a29k/tm-a29k.h: Nuke obsolete define CONTROL_END_ADDR; it
is nowhere used.

29 years ago * stabsread.c (read_range_type): Remove FIXME comment about
Jim Kingdon [Fri, 31 Mar 1995 03:52:28 +0000 (03:52 +0000)]
* 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.

29 years ago * gdb.base/list.exp: Adjust line contents after adding new lines in
Kung Hsu [Fri, 31 Mar 1995 02:09:59 +0000 (02:09 +0000)]
    * gdb.base/list.exp: Adjust line contents after adding new lines in
        list0.c. Also fix a syntax error.

29 years ago * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.
Kung Hsu [Fri, 31 Mar 1995 00:43:47 +0000 (00:43 +0000)]
    * 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.

29 years ago * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.
Kung Hsu [Fri, 31 Mar 1995 00:43:12 +0000 (00:43 +0000)]
    * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.

29 years agoThu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
Ian Lance Taylor [Thu, 30 Mar 1995 19:42:38 +0000 (19:42 +0000)]
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.

29 years agoThu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
Ian Lance Taylor [Thu, 30 Mar 1995 19:37:22 +0000 (19:37 +0000)]
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.

29 years ago * config.sub: Remove linux special cases.
Ian Lance Taylor [Thu, 30 Mar 1995 19:19:25 +0000 (19:19 +0000)]
* config.sub: Remove linux special cases.

29 years ago * config.sub: Merge in recent FSF changes.
Ian Lance Taylor [Thu, 30 Mar 1995 18:57:09 +0000 (18:57 +0000)]
* config.sub: Merge in recent FSF changes.

29 years ago * ld.texinfo, ld.1: Document the -no-keep-memory option.
Ian Lance Taylor [Thu, 30 Mar 1995 18:10:51 +0000 (18:10 +0000)]
* ld.texinfo, ld.1: Document the -no-keep-memory option.

29 years agoMove testsuite entries from gdb's ChangeLog to here.
Stu Grossman [Thu, 30 Mar 1995 18:03:04 +0000 (18:03 +0000)]
Move testsuite entries from gdb's ChangeLog to here.

29 years agoMove testsuite entries into testsuite/ChangeLog.
Stu Grossman [Thu, 30 Mar 1995 18:00:19 +0000 (18:00 +0000)]
Move testsuite entries into testsuite/ChangeLog.

29 years agoWed Mar 29 09:56:04 1995 Jason Molenda (crash@phydeaux.cygnus.com)
Stan Shebs [Thu, 30 Mar 1995 03:09:35 +0000 (03:09 +0000)]
Wed Mar 29 09:56:04 1995  Jason Molenda  (crash@phydeaux.cygnus.com)

* configure.in: sparc-*-sunos5* is same as sparc-*-solaris2*.

29 years ago * remote-e7000.c (why_stop): Add new kinds of strings to expect
Stan Shebs [Thu, 30 Mar 1995 02:43:50 +0000 (02:43 +0000)]
* 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.

29 years agostart-sanitize-gdbtk
Stu Grossman [Thu, 30 Mar 1995 01:47:32 +0000 (01:47 +0000)]
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.

29 years agoChanges for hosting on 64 bit machines.
Torbjorn Granlund [Thu, 30 Mar 1995 01:18:40 +0000 (01:18 +0000)]
Changes for hosting on 64 bit machines.

29 years ago * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1.
Kung Hsu [Wed, 29 Mar 1995 20:31:26 +0000 (20:31 +0000)]
    * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1.

29 years ago * coff-i960.c (coff_i960_relocate): Cache the section symbol in
Ian Lance Taylor [Wed, 29 Mar 1995 18:20:33 +0000 (18:20 +0000)]
* 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.

29 years ago * cpu-h8500.c (arch_info_struct): Change name from "H8/300" to
Ian Lance Taylor [Wed, 29 Mar 1995 17:02:34 +0000 (17:02 +0000)]
* cpu-h8500.c (arch_info_struct): Change name from "H8/300" to
"h8300" for consistency with other cpu-* files.

29 years agoDo not declare atof if it is a macro.
Michael Meissner [Wed, 29 Mar 1995 14:13:43 +0000 (14:13 +0000)]
Do not declare atof if it is a macro.

29 years ago * rs6000-tdep.c (skip_prologue): Skip saving of LR and CR in
Peter Schauer [Wed, 29 Mar 1995 08:16:05 +0000 (08:16 +0000)]
* 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.

29 years ago * pr-6632.ch, pr-6632-grt.ch, pr-6632.exp, Makefile.in: New test case.
Per Bothner [Wed, 29 Mar 1995 01:15:04 +0000 (01:15 +0000)]
* pr-6632.ch, pr-6632-grt.ch, pr-6632.exp, Makefile.in:  New test case.

29 years ago * gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUB
Per Bothner [Wed, 29 Mar 1995 01:11:45 +0000 (01:11 +0000)]
* 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.

29 years ago* remote.texi (NetWare): Changed example to use BOARD= instead of
J.T. Conklin [Wed, 29 Mar 1995 00:57:44 +0000 (00:57 +0000)]
* remote.texi (NetWare): Changed example to use BOARD= instead of
  NODE= argument to reflect correspoding change to gdbserve.nlm.

29 years agoAdd entry I forgot to commit:
Jeff Law [Tue, 28 Mar 1995 23:28:50 +0000 (23:28 +0000)]
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.

29 years agoTue Mar 28 14:47:34 1995 Jason Molenda (crash@phydeaux.cygnus.com)
Jason Molenda [Tue, 28 Mar 1995 22:50:45 +0000 (22:50 +0000)]
Tue Mar 28 14:47:34 1995  Jason Molenda (crash@phydeaux.cygnus.com)

        build-all.mk,config/mh-solaris:  revert these two changes:

        Tue Mar 30 10:03:09 1993  Ian Lance Taylor  (ian@cygnus.com)

                * build-all.mk: Use CC=cc -Xs on Solaris.

        Mon Mar 29 19:59:26 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)

                * config/mh-solaris: SunPRO C needs -Xs to be able to get a
                working xmakefile for Emacs.

xmakefile no longer used for emacs; recent versions of SunPRO C
allegedly drop -Xs; running configure will assume ``cc'' but when you
compile, it uses ``cc -Xs'' (ansi vs old SunOS behavior) which causes
all kinds of problems rebuilding the source using the SunPRO compiler.

29 years ago * bout.c (b_out_canonicalize_reloc): Handle SEC_CONSTRUCTOR
Ian Lance Taylor [Tue, 28 Mar 1995 20:27:35 +0000 (20:27 +0000)]
* bout.c (b_out_canonicalize_reloc): Handle SEC_CONSTRUCTOR
sections.
(b_out_get_reloc_upper_bound): Likewise.

29 years ago * linker.c (generic_link_add_symbol_list): Skip constructor
Ian Lance Taylor [Tue, 28 Mar 1995 20:17:37 +0000 (20:17 +0000)]
* 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.

29 years agokeep binutils-hppa
Ken Raeburn [Tue, 28 Mar 1995 19:44:13 +0000 (19:44 +0000)]
keep binutils-hppa

29 years ago * gdb.base/recurse.exp: Make test names unique. Change \\(+ to \\(.
Jim Kingdon [Tue, 28 Mar 1995 17:33:10 +0000 (17:33 +0000)]
* 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.

29 years ago * binutils-all/objcopy.exp: Add setup_xfail for simple copy test
Ian Lance Taylor [Tue, 28 Mar 1995 16:19:22 +0000 (16:19 +0000)]
* binutils-all/objcopy.exp: Add setup_xfail for simple copy test
for m68*-ericsson-ose and m88*-*-coff.

29 years ago * config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM):
Peter Schauer [Tue, 28 Mar 1995 06:58:39 +0000 (06:58 +0000)]
* config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM):
Fix definitions.

29 years ago * alpha-nat.c, irix4-nat.c, irix5-nat.c, mipsv4-nat.c,
Peter Schauer [Tue, 28 Mar 1995 06:57:39 +0000 (06:57 +0000)]
* 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.

29 years ago * vx-share/regPacket.h: a new file interfacing with vxworks.
Kung Hsu [Mon, 27 Mar 1995 22:47:04 +0000 (22:47 +0000)]
    * vx-share/regPacket.h: a new file interfacing with vxworks.

29 years ago* run.c: parse arguments with getopt().
J.T. Conklin [Mon, 27 Mar 1995 18:49:58 +0000 (18:49 +0000)]
* run.c: parse arguments with getopt().

29 years ago * binutils-all/objcopy.exp: Add setup_xfail for simply copy test
Ian Lance Taylor [Mon, 27 Mar 1995 16:28:16 +0000 (16:28 +0000)]
* binutils-all/objcopy.exp: Add setup_xfail for simply copy test
for m68*-*-vxworks*.

29 years ago * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
Ian Lance Taylor [Mon, 27 Mar 1995 16:11:22 +0000 (16:11 +0000)]
* ldmain.c (main): Revert patch of March 10, since the SVR4 linker
does mark shared libraries as executable.

29 years ago * lib/gdb.exp (default_gdb_version): A version number must start
Jim Kingdon [Mon, 27 Mar 1995 16:05:08 +0000 (16:05 +0000)]
* 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.

29 years ago* gdb.base/commands.exp (breakpoint_command_test): New tests.
Jim Kingdon [Sun, 26 Mar 1995 21:43:41 +0000 (21:43 +0000)]
* gdb.base/commands.exp (breakpoint_command_test): New tests.

29 years ago * breakpoint.c (bpstat_do_actions): Once we've executed the
Jim Kingdon [Sun, 26 Mar 1995 21:39:51 +0000 (21:39 +0000)]
* breakpoint.c (bpstat_do_actions): Once we've executed the
commands, set bs->commands to NULL.

29 years ago * gdb.c++/*.exp: Warn if executable does not exist. The original
Jim Kingdon [Sat, 25 Mar 1995 23:46:43 +0000 (23:46 +0000)]
* 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.

29 years ago * gdb.base/list.exp: Add expect patterns for output from
Peter Schauer [Sat, 25 Mar 1995 09:26:16 +0000 (09:26 +0000)]
* 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.

29 years ago * sparc-tdep.c, config/sparc/tm-sun4sol2.h
Peter Schauer [Sat, 25 Mar 1995 09:25:06 +0000 (09:25 +0000)]
* 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.

29 years ago * buildsym.c (patch_subfile_name): Update last_source_file
Peter Schauer [Sat, 25 Mar 1995 09:23:10 +0000 (09:23 +0000)]
* 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.

29 years ago * gdb.base/break.exp (test_next_with_recursion): Accept any line
Jim Kingdon [Sat, 25 Mar 1995 06:01:20 +0000 (06:01 +0000)]
* 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).

29 years ago * configure.in: Move test for m68*-est-* before m68*-*-coff*.
Stu Grossman [Sat, 25 Mar 1995 00:41:54 +0000 (00:41 +0000)]
* 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.

29 years agoNew file for controlling the EST.
Stu Grossman [Sat, 25 Mar 1995 00:37:09 +0000 (00:37 +0000)]
New file for controlling the EST.

29 years ago * configure.in: Move test for m68*-est-* before m68*-*-coff*.
Stu Grossman [Sat, 25 Mar 1995 00:36:01 +0000 (00:36 +0000)]
* 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.

29 years ago * gdb.base/a1-selftest.exp (test_with_self): Remove comment which
Jim Kingdon [Fri, 24 Mar 1995 23:06:46 +0000 (23:06 +0000)]
* gdb.base/a1-selftest.exp (test_with_self): Remove comment which
apparently went with a (very) old xfail.

29 years ago * gdb.base/callfuncs.exp: call runto_main instead of runto main.
Kung Hsu [Fri, 24 Mar 1995 22:06:00 +0000 (22:06 +0000)]
    * 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.

29 years ago * gdb.base/callfuncs.exp: call runto_main instead of runto main.
Kung Hsu [Fri, 24 Mar 1995 22:02:15 +0000 (22:02 +0000)]
    * 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.

29 years ago * config/vx-gdb.exp, lib/gdb.exp: Regexp cleanups (\[(\] -> \\(, etc.).
Jim Kingdon [Fri, 24 Mar 1995 20:05:28 +0000 (20:05 +0000)]
* config/vx-gdb.exp, lib/gdb.exp: Regexp cleanups (\[(\] -> \\(, etc.).

29 years ago * strings.c: Include "bfd.h" before other headers. Include
Ian Lance Taylor [Fri, 24 Mar 1995 16:49:14 +0000 (16:49 +0000)]
* 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.

29 years ago * binutils-hppa/objdump.exp: Correct hppa*-*-* check.
Ian Lance Taylor [Fri, 24 Mar 1995 16:46:02 +0000 (16:46 +0000)]
* binutils-hppa/objdump.exp: Correct hppa*-*-* check.

29 years ago * gdb.base/a1-selftest.exp: Don't check for # followed by a digit
Jim Kingdon [Fri, 24 Mar 1995 16:38:06 +0000 (16:38 +0000)]
* 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.

29 years ago* gdb.base/scope.exp: Make test names unique. \[(\] -> \\(.
Jim Kingdon [Fri, 24 Mar 1995 14:13:35 +0000 (14:13 +0000)]
* gdb.base/scope.exp: Make test names unique.  \[(\] -> \\(.

29 years ago * somsolib.c (som_solib_add): Handle case where a shared library
Jeff Law [Fri, 24 Mar 1995 06:21:44 +0000 (06:21 +0000)]
    * 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).

29 years ago* gdb.base/commands.exp (infrun_breakpoint_command_test): New test.
Jim Kingdon [Thu, 23 Mar 1995 23:36:33 +0000 (23:36 +0000)]
* gdb.base/commands.exp (infrun_breakpoint_command_test): New test.

29 years ago * breakpoint.c (bpstat_do_actions): For each element in the bpstat
Jim Kingdon [Thu, 23 Mar 1995 23:35:00 +0000 (23:35 +0000)]
* breakpoint.c (bpstat_do_actions): For each element in the bpstat
chain, do all the commands regardless of whether they run the
inferior.

29 years ago * mem-break.c (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Define as
David Edelsohn [Thu, 23 Mar 1995 03:39:24 +0000 (03:39 +0000)]
* 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.

29 years ago * config/mt-slite: add LIBS and -nostdlib.
Kung Hsu [Thu, 23 Mar 1995 02:38:39 +0000 (02:38 +0000)]
    * config/mt-slite: add LIBS and -nostdlib.
        * config/slite-gdb.exp: add this new file to support sparclite target.

29 years ago * config/vx-gdb.exp (gdb_load): Update test of vxworks_ld return code.
David Edelsohn [Wed, 22 Mar 1995 05:42:22 +0000 (05:42 +0000)]
* config/vx-gdb.exp (gdb_load): Update test of vxworks_ld return code.

29 years ago* gdb.base/a2-run.exp: Change argument to istarget from
David Edelsohn [Wed, 22 Mar 1995 04:54:35 +0000 (04:54 +0000)]
* gdb.base/a2-run.exp: Change argument to istarget from
"*-*-vxworks" to "*-*-vxworks*".
* gdb.base/{break.exp,default.exp,scope.exp}: Likewise.

29 years agoChange argument to istarget from "*-*-vxworks" to "*-*-vxworks*".
David Edelsohn [Wed, 22 Mar 1995 04:52:25 +0000 (04:52 +0000)]
Change argument to istarget from "*-*-vxworks" to "*-*-vxworks*".

29 years ago * lib/gdb.exp: add proc runto_main, for targets that use stubs, this
Kung Hsu [Wed, 22 Mar 1995 01:13:08 +0000 (01:13 +0000)]
    * 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.

29 years ago * config/mt-slite: add -Dusestubs.
Kung Hsu [Wed, 22 Mar 1995 01:12:04 +0000 (01:12 +0000)]
    * config/mt-slite: add -Dusestubs.

29 years ago * lib/gdb.exp: add proc runto_main, for targets that use stubs, this
Kung Hsu [Wed, 22 Mar 1995 01:11:34 +0000 (01:11 +0000)]
    * 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().

29 years ago * sparc-stub.c: add nop after 'bg good_wim'.
Kung Hsu [Wed, 22 Mar 1995 01:06:36 +0000 (01:06 +0000)]
    * sparc-stub.c: add nop after 'bg good_wim'.
        * sparcl-stub.c: ditto.

29 years ago * gdb.base/printcmds.exp (test_artificial_arrays): Send ^V@
Jim Kingdon [Tue, 21 Mar 1995 22:24:00 +0000 (22:24 +0000)]
* gdb.base/printcmds.exp (test_artificial_arrays): Send ^V@
instead of just @.

29 years ago * gdb.base/signals.exp: Add test for "handle all print".
Jim Kingdon [Tue, 21 Mar 1995 22:02:06 +0000 (22:02 +0000)]
* 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).

29 years ago * infrun.c (handle_command): Don't print TARGET_SIGNAL_0,
Jim Kingdon [Tue, 21 Mar 1995 21:59:03 +0000 (21:59 +0000)]
* infrun.c (handle_command): Don't print TARGET_SIGNAL_0,
TARGET_SIGNAL_UNKNOWN, or TARGET_SIGNAL_DEFAULT.

29 years ago * config/tc-mips.c (md_show_usage): Mention -mips4 and -m4650.
Ian Lance Taylor [Tue, 21 Mar 1995 21:54:25 +0000 (21:54 +0000)]
* config/tc-mips.c (md_show_usage): Mention -mips4 and -m4650.

29 years ago * gdb.base/recurse.exp: Enable test for SunOS4. xfail one test
Jim Kingdon [Tue, 21 Mar 1995 21:12:24 +0000 (21:12 +0000)]
* gdb.base/recurse.exp: Enable test for SunOS4.  xfail one test
for SunOS4 (reason for failure not investigated).  Remove
redundant test for $binfile.

29 years ago* gdb.base/nodebug.c (array_index): Call malloc.
Jim Kingdon [Tue, 21 Mar 1995 21:01:53 +0000 (21:01 +0000)]
* gdb.base/nodebug.c (array_index): Call malloc.

29 years ago * gdb.base/{corefile.exp,default.exp}: Make names of "up" tests unique.
Jim Kingdon [Tue, 21 Mar 1995 20:17:49 +0000 (20:17 +0000)]
* gdb.base/{corefile.exp,default.exp}: Make names of "up" tests unique.

29 years ago * ldlang.c (lang_common): Change power to int. Pass larger values
Ian Lance Taylor [Tue, 21 Mar 1995 20:17:07 +0000 (20:17 +0000)]
* 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.

29 years ago* tuples.exp (do_tests): Make names of "print v_ps" test unique.
Jim Kingdon [Tue, 21 Mar 1995 20:11:37 +0000 (20:11 +0000)]
* tuples.exp (do_tests): Make names of "print v_ps" test unique.

29 years ago * binutils-hppa/addendbug.s: New testcase.
Jeff Law [Tue, 21 Mar 1995 17:49:53 +0000 (17:49 +0000)]
* binutils-hppa/addendbug.s: New testcase.
* binutils-hppa/objdump.exp: Run it.

29 years ago * gas/hppa/unsorted/common.s: New test.
Jeff Law [Tue, 21 Mar 1995 05:47:14 +0000 (05:47 +0000)]
* gas/hppa/unsorted/common.s: New test.
* gas/hppa/unsorted/unsorted.exp: Run it.

29 years ago * som.c (som_slurp_symbol_table): Tighten test to determine
Jeff Law [Tue, 21 Mar 1995 05:40:30 +0000 (05:40 +0000)]
* som.c (som_slurp_symbol_table): Tighten test to determine
what symbols are section symbols.

29 years ago * config/m68k/tm-m68k.h: Define D0_REGNUM and A0_REGNUM for register
Stu Grossman [Mon, 20 Mar 1995 23:41:51 +0000 (23:41 +0000)]
* config/m68k/tm-m68k.h:  Define D0_REGNUM and A0_REGNUM for register
dump handling.

29 years ago * findvar.c (read_register_bytes write_register_bytes): Make
Stu Grossman [Mon, 20 Mar 1995 23:40:33 +0000 (23:40 +0000)]
* 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.

29 years ago * lib/utils-lib.exp (default_binutils_run): Quote any dollar signs
Ian Lance Taylor [Mon, 20 Mar 1995 19:31:58 +0000 (19:31 +0000)]
* lib/utils-lib.exp (default_binutils_run): Quote any dollar signs
in progargs before passing it to exec.

29 years ago * hppab-nat.c (store_inferior_registers): Sync with HPUX version.
Jeff Law [Mon, 20 Mar 1995 17:11:35 +0000 (17:11 +0000)]
* hppab-nat.c (store_inferior_registers): Sync with HPUX version.

29 years ago * gdb.base/recurse.exp: Update gdb_test invocation to use new
Jeff Law [Mon, 20 Mar 1995 17:09:25 +0000 (17:09 +0000)]
* gdb.base/recurse.exp: Update gdb_test invocation to use new
conventions and slightly simplify the matching regexp.

29 years ago * hppah-nat.c (store_inferior_registers): Move check for
Stu Grossman [Mon, 20 Mar 1995 15:38:56 +0000 (15:38 +0000)]
* 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.

29 years ago * mdebugread.c (parse_symbol): If finishing a function without
Peter Schauer [Sat, 18 Mar 1995 13:16:51 +0000 (13:16 +0000)]
* 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.

29 years agotipo
Ian Lance Taylor [Sat, 18 Mar 1995 06:56:51 +0000 (06:56 +0000)]
tipo

29 years ago * elfcode.h (elf_bfd_link_add_symbols): An empty archive is OK.
Ian Lance Taylor [Sat, 18 Mar 1995 06:56:00 +0000 (06:56 +0000)]
* elfcode.h (elf_bfd_link_add_symbols): An empty archive is OK.

29 years ago * ldlang.c (load_symbols): An empty is archive is OK.
Ian Lance Taylor [Sat, 18 Mar 1995 06:53:14 +0000 (06:53 +0000)]
* ldlang.c (load_symbols): An empty is archive is OK.