binutils-gdb.git
32 years agouse *-*-* instead nested cases
David D. Zuhn [Fri, 2 Oct 1992 01:00:21 +0000 (01:00 +0000)]
use *-*-* instead nested cases

32 years agoavoid compiler warnings
David D. Zuhn [Fri, 2 Oct 1992 00:52:49 +0000 (00:52 +0000)]
avoid compiler warnings

32 years agoSun3 native support.
K. Richard Pixley [Thu, 1 Oct 1992 22:44:25 +0000 (22:44 +0000)]
Sun3 native support.

* config/sun3os3.mh, config/sun3os4.mh (NAT_FILE, NATDEPFILES):
  new macros for native support.
  (XDEPFILES): moved infptrace.o and inftarg.o to NATDEPFILES,
  removed sun3-xdep.o.
* xm-sun3.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
  nm-sun3.h.
* sun3-xdep.c: removed.  All code is now in sun3-nat.c.
* sun3-nat.c, nm-sun3.h: new files for native support.

32 years ago * dwarfread.c (dbsize): New variable to hold size of dwarf info.
Fred Fish [Thu, 1 Oct 1992 17:33:21 +0000 (17:33 +0000)]
* dwarfread.c (dbsize):  New variable to hold size of dwarf info.
* dwarfread.c (dwarf_build_psymtabs):  Rename dbsize parameter to
dbfsize and use it to initialize new local file scope dbsize.
* dwarfread.c (read_ofile_symtab):  Initialize dbsize and use it.
* dwarfread.c (basicdieinfo):  Use dbsize to check for oversize
DIEs as well as the current check for undersize DIEs.  This helps
to gracefully detect and reject corrupted DIE information.

32 years agoAdd `command hooks' and a hook for inferior program stopping.
John Gilmore [Thu, 1 Oct 1992 10:00:47 +0000 (10:00 +0000)]
Add `command hooks' and a hook for inferior program stopping.

32 years agoRemove dup inftarg.o from NATDEPFILES.
John Gilmore [Thu, 1 Oct 1992 09:59:33 +0000 (09:59 +0000)]
Remove dup inftarg.o from NATDEPFILES.

32 years agoAdd `command hooks' and a hook for inferior program stopping.
John Gilmore [Thu, 1 Oct 1992 09:57:36 +0000 (09:57 +0000)]
Add `command hooks' and a hook for inferior program stopping.

* command.h (struct cmd_list_element):  Remove unused `aux'
field.  Add new `hook', `hookee', and `cmd_pointer' fields.
* command.c (add_cmd):  Initialize new fields, elim old.
(add_alias_cmd):  Clone new fields.
(delete_cmd):  Un-hook hookee if we're deleting hook.
(help_cmd):  Tell user the command is hooked, if it is.
(lookup_cmd_1):  Abbreviations return the original command
instead of themselves, so that hooks on the original cmd will be
run.
* defs.h (enum command_class):  Add class_pseudo and comments.
* gdbcmd.h (execute_user_command):  Add prototype.
* infrun.c (normal_stop):  If the stop command is hooked,
run the hook whenever we stop.
(hook_stop_stub):  Stub for catch_errors.
(_initialize_infrun):  Set up pseudo "stop" command.
* main.c (execute_user_command):  Code extracted from execute_command.
(execute_command):  If hooked, run the hook before the command.
(define_command):  If defining a new hook, check the command it
is hooking, and warn if none.  Install the hook.
* source.c (_initialize_source):  "l" is an abbrev for "list".
* doc/gdb.texinfo:  Document command hooks.

* Makefile.in (VERSION):  Roll to 4.6.7.
* config/sun4os4.mh:  Remove dup inftarg.o from NATDEPFILES.
* infrun.c (breakpoints_inserted):  Make it static again.
* tm-symmetry.h (FLOAT_INFO):  #if 0 it for cross-ptrace abuse.

32 years agoFix bug where all the opcodes were one off
Mike Werner [Wed, 30 Sep 1992 23:11:04 +0000 (23:11 +0000)]
Fix bug where all the opcodes were one off

32 years agomissed a ChangeLog entry
K. Richard Pixley [Wed, 30 Sep 1992 22:40:17 +0000 (22:40 +0000)]
missed a ChangeLog entry

32 years agoNative file renaming.
K. Richard Pixley [Wed, 30 Sep 1992 22:39:02 +0000 (22:39 +0000)]
Native file renaming.

* nat-sparc.c -> sparc-nat.c
* nat-sun4os4.h -> nm-sun4os4.h
* nat-trash.h -> nm-trash.h
* configure.in: link to nm.h rather than nat.h.
* infptrace.c: include nm.h rather than nat.h.

32 years agoRemove energize from configdirs. Only install via energize-patches.
Stu Grossman [Wed, 30 Sep 1992 21:16:23 +0000 (21:16 +0000)]
Remove energize from configdirs.  Only install via energize-patches.

32 years ago* readline.c (rl_complete_internal): Cast alloca to (char *) to
Stu Grossman [Wed, 30 Sep 1992 20:00:22 +0000 (20:00 +0000)]
* readline.c (rl_complete_internal):  Cast alloca to (char *) to
avoid warning.

32 years agoSave nat-sparc.c as well...
Fred Fish [Wed, 30 Sep 1992 18:56:29 +0000 (18:56 +0000)]
Save nat-sparc.c as well...

32 years agoSave nat-trash.h for non-sun4 configures of sanitized copies of current
Fred Fish [Wed, 30 Sep 1992 18:49:55 +0000 (18:49 +0000)]
Save nat-trash.h for non-sun4 configures of sanitized copies of current
checked in sources.

32 years agoKeep nat-sun4os4.h so current checked in Sanitized versions will build.
Fred Fish [Wed, 30 Sep 1992 18:24:31 +0000 (18:24 +0000)]
Keep nat-sun4os4.h so current checked in Sanitized versions will build.

32 years agoAdd energize to configdirs.
Stu Grossman [Wed, 30 Sep 1992 17:39:32 +0000 (17:39 +0000)]
Add energize to configdirs.

32 years agoadded copyright notice
Steve Chamberlain [Wed, 30 Sep 1992 14:42:53 +0000 (14:42 +0000)]
added copyright notice

32 years agoadd z8kgen
Steve Chamberlain [Wed, 30 Sep 1992 14:41:36 +0000 (14:41 +0000)]
add z8kgen

32 years ago * config/z8ksim.mt: new file
Steve Chamberlain [Wed, 30 Sep 1992 14:35:19 +0000 (14:35 +0000)]
* config/z8ksim.mt: new file

32 years agoHost/target/native split for sun4.
K. Richard Pixley [Wed, 30 Sep 1992 02:25:31 +0000 (02:25 +0000)]
Host/target/native split for sun4.

* Makefile.in (TSOBS): removed corelow.o.
* infptrace.c: included nat.h.
* nat-trash.h: temporary header file.  This should be removed once
  all hosts have the native/host/target split.
* configure.in: add a symlink from nat-trash.h to nat.h if no
  other nat file exists for this configuration.
* sparc-tdep.c: no longer include sys/ptrace.h.
* sparc-xdep.c: removed.  contents have been moved to nat-sparc.c.
* xm-sparc.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
  nat-sun4os4.h.
* nat-sparc.c, nat-sun4os4.h: new files for sun4 native support.
* config/sun4os4.mh (XDEPFILES): moved infptrace.o and inftarg.o
  to NATDEPFILES.  removed sparc-xdep.o.
  (NATDEPFILES, NAT_FILE): new macros for native support.

32 years agoHost/target/native split for sun4.
K. Richard Pixley [Wed, 30 Sep 1992 02:03:24 +0000 (02:03 +0000)]
Host/target/native split for sun4.

* Makefile.in (TSOBS): removed corelow.o.
* infptrace.c: included nat.h.
* nat-trash.h: temporary header file.  This should be removed once
  all hosts have the native/host/target split.
* configure.in: add a symlink from nat-trash.h to nat.h if no
  other nat file exists for this configuration.
* sparc-tdep.c: no longer include sys/ptrace.h.
* sparc-xdep.c: removed.  contents have been moved to nat-sparc.c.
* xm-sparc.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
  nat-sun4os4.h.
* nat-sparc.c, nat-sun4os4.h: new files for sun4 native support.
* config/sun4os4.mh (XDEPFILES): moved infptrace.o and inftarg.o
  to NATDEPFILES.  removed sparc-xdep.o.
  (NATDEPFILES, NAT_FILE): new macros for native support.

32 years agoAdd COPYING and COPYING.LIB.
Per Bothner [Tue, 29 Sep 1992 22:51:18 +0000 (22:51 +0000)]
Add COPYING and COPYING.LIB.

32 years agoBreak the direct connection from core_file_command to any
K. Richard Pixley [Tue, 29 Sep 1992 21:51:16 +0000 (21:51 +0000)]
Break the direct connection from core_file_command to any
particular type of core file support.

* target.h (find_core_target): new prototype.
* target.c (find_core_target): new function.  Walks the target
  list looking for the core target.
* core.c (core_file_command): replace calls to core_detach and
  core_open with find_core_target and direct calls.

32 years agoTue Sep 29 14:11:18 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Tue, 29 Sep 1992 21:13:29 +0000 (21:13 +0000)]
Tue Sep 29 14:11:18 1992  Ian Lance Taylor  (ian@cygnus.com)

* Makefile.in: added -nostdinc to XTRAFLAGS if we are using gcc
from the same source tree and not building a cross-compiler.  This
matters for the libg++ configuration if reconfiguring a tree that
has already been installed.

32 years agobout.c: Removed some unused variables
Ken Raeburn [Tue, 29 Sep 1992 20:30:25 +0000 (20:30 +0000)]
bout.c: Removed some unused variables

32 years agocoffcode.h (coff_section_symbol): Create section if it doesn't exist.
Ken Raeburn [Tue, 29 Sep 1992 20:26:01 +0000 (20:26 +0000)]
coffcode.h (coff_section_symbol): Create section if it doesn't exist.

32 years ago * obj-coffbfd.c (write_object_file): don't fixup for the z8k
Steve Chamberlain [Tue, 29 Sep 1992 19:25:33 +0000 (19:25 +0000)]
* obj-coffbfd.c (write_object_file): don't fixup for the z8k
* tc-z8k.[ch]: lots of bug fixes

32 years ago * z8k-dis.c (unparse_instr): prettier tabs
Steve Chamberlain [Tue, 29 Sep 1992 19:21:34 +0000 (19:21 +0000)]
* z8k-dis.c (unparse_instr): prettier tabs
* z8kgen.c -> z8k-opc.h: bug fixes in tables

32 years agoTue Sep 29 10:51:55 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Tue, 29 Sep 1992 18:38:20 +0000 (18:38 +0000)]
Tue Sep 29 10:51:55 1992  Ian Lance Taylor  (ian@cygnus.com)

* tc-i960.h, tc-i960.c: avoid the ANSI preprocessor addition
#elif, since it is not supported by old compilers.
ho-rs6000.h, tc-m68k.c: the native RS/6000 compiler miscompiles a
couple of expressions in tc-m68k.c.

32 years agoTue Sep 29 10:19:00 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Tue, 29 Sep 1992 17:43:35 +0000 (17:43 +0000)]
Tue Sep 29 10:19:00 1992  Ian Lance Taylor  (ian@cygnus.com)

* xm-hp300hpux.h: define MEM_FNS_DECLARED; include <sys/ptrace.h>
for infptrace.c.
config/hp300hpux.mh: ALLOCA1 was not defined.

32 years agoAdded new hp9000.mh file.
Ian Lance Taylor [Tue, 29 Sep 1992 15:51:10 +0000 (15:51 +0000)]
Added new hp9000.mh file.

32 years agoHP/UX needs -Wp,-P when compiling with -O (comment only, since the
Ian Lance Taylor [Tue, 29 Sep 1992 15:50:30 +0000 (15:50 +0000)]
HP/UX needs -Wp,-P when compiling with -O (comment only, since the
default is not to use -O).

32 years agoTue Sep 29 08:30:21 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Tue, 29 Sep 1992 15:47:03 +0000 (15:47 +0000)]
Tue Sep 29 08:30:21 1992  Ian Lance Taylor  (ian@cygnus.com)

* Portability fixes from p3:
coffcode.h (coff_write_relocs): removed sanity check until it
works on all targets (per advice from sac).
config/hp9000.mh: new file to define USG.
hppa.c: #undef hppa before the JUMP_TABLE.
hosts/hppahpux.h: #define NATIVE_HPPAHPUX_COMPILER if not
__STDC__.
targets.c (bfd_target_list): if NATIVE_HPPAHPUX_COMPILER, make
local variable target volatile to avoid mysterious bug in
HP9000/700 cc.

32 years agoYet another rev. We keep the _filtered stuff for energize.
Stu Grossman [Tue, 29 Sep 1992 05:20:46 +0000 (05:20 +0000)]
Yet another rev.  We keep the _filtered stuff for energize.

32 years ago* breakpoint.c, exec.c, language.c, main.c, printcmd.c, symfile.c,
Stu Grossman [Tue, 29 Sep 1992 05:07:30 +0000 (05:07 +0000)]
* breakpoint.c, exec.c, language.c, main.c, printcmd.c, symfile.c,
target.c, valprint.c:  Use unfiltered forms of f/printf, et. al.
until we can figure out a better way to do paging.

32 years agotc-i960.c: use NO_RELOC
Ken Raeburn [Tue, 29 Sep 1992 01:27:27 +0000 (01:27 +0000)]
tc-i960.c: use NO_RELOC

32 years agoenergize.c (energize_wait): Use new interfaces to native/target routines.
Stu Grossman [Mon, 28 Sep 1992 21:31:29 +0000 (21:31 +0000)]
energize.c (energize_wait):  Use new interfaces to native/target routines.

32 years agoUse correct directory for .mh files so that patch can find them.
Stu Grossman [Mon, 28 Sep 1992 21:28:02 +0000 (21:28 +0000)]
Use correct directory for .mh files so that patch can find them.

32 years agoUse new interfaces to native/target stuff.
Stu Grossman [Mon, 28 Sep 1992 21:27:05 +0000 (21:27 +0000)]
Use new interfaces to native/target stuff.

32 years agoPreserve fork-child.c.
Fred Fish [Sun, 27 Sep 1992 06:48:41 +0000 (06:48 +0000)]
Preserve fork-child.c.

32 years agoKeep adobe.h, needed to compile bfd/aout-adobe.c
Fred Fish [Sun, 27 Sep 1992 06:23:03 +0000 (06:23 +0000)]
Keep adobe.h, needed to compile bfd/aout-adobe.c

32 years agoKeep aout-adobe.c, need to compile sanitized versions.
Fred Fish [Sun, 27 Sep 1992 06:15:32 +0000 (06:15 +0000)]
Keep aout-adobe.c, need to compile sanitized versions.

32 years agoMake sure flex is built before stuff that might use it.
David Henkel-Wallace [Sat, 26 Sep 1992 22:33:06 +0000 (22:33 +0000)]
Make sure flex is built before stuff that might use it.

32 years agoBack out WRS changes, since they are wrong.
Ian Lance Taylor [Sat, 26 Sep 1992 15:04:35 +0000 (15:04 +0000)]
Back out WRS changes, since they are wrong.

32 years ago* config/hppabsd.mh, config.hppahpux.mh: Remove various bogosity.
John Gilmore [Sat, 26 Sep 1992 11:00:36 +0000 (11:00 +0000)]
* config/hppabsd.mh, config.hppahpux.mh:  Remove various bogosity.
* hosts/hppahpux.h:  Remove bcopy and index circumventions.

32 years ago* config/hppabsd.mh, config/hppahpux.mh: Use standard coredep.o.
John Gilmore [Sat, 26 Sep 1992 10:29:01 +0000 (10:29 +0000)]
* config/hppabsd.mh, config/hppahpux.mh:  Use standard coredep.o.
Rename all HPPA files to fit into unique DOS filenames:
* *hppabsd*  => *hppab*
* *hppahpux* => *hppah*

32 years agoRename all HPPA files to fit into unique DOS filenames:
John Gilmore [Sat, 26 Sep 1992 10:27:10 +0000 (10:27 +0000)]
Rename all HPPA files to fit into unique DOS filenames:
  *hppabsd*  => *hppab*       *hppahpux* => *hppah*

32 years ago* findvar.c (supply_register): Add CLEAN_UP_REGISTER_VALUE hook.
John Gilmore [Sat, 26 Sep 1992 10:24:26 +0000 (10:24 +0000)]
* findvar.c (supply_register):  Add CLEAN_UP_REGISTER_VALUE hook.
* tm-hppa.h (CLEAN_UP_REGISTER_VALUE):  Use it.
* hppa-coredep.c:  Remove, now that we use the hook.
* config/hppab.mh, config/hppah.mh:  Use standard coredep.o.
* hppab-xdep.c, hppah-xdep.c:  Remove custom code, use hook.

* dbxread.c, partial-stab.h:  Replace all #ifdef hp9000s800's with
GDB_TARGET_IS_HPPA's.  This is a SERIOUS KLUDGE.  The code needs to all
be ripped out and reimplemented right (see elfread.c).
* tm-hppa.h (GDB_TARGET_IS_HPPA):  Define.

32 years agoMake the /proc support a target-struct in its own right.
John Gilmore [Sat, 26 Sep 1992 09:06:30 +0000 (09:06 +0000)]
Make the /proc support a target-struct in its own right.

* inferior.h (proc_wait, inferior_proc_init, proc_set_exec_trap):
No longer global functions.
(fork_inferior):  New global function from fork-child.c.
* inftarg.c (child_wait):  Remove USE_PROC_FS conditional.
(ptrace_me, ptrace_him):  New stub functions for fork_inferior().
(child_create_inferior):  Moved to fork-child.c as fork_inferior.
(child_create_inferior):  New tiny function that calls fork_inferior.
* fork-child.c:  New file, containing fork_inferior, which is
built from slight mods to inftarg.c's child_create_inferior.

* procfs.c (procfs_ops):  Add target vector.
(attach):  Rename as static do_attach.
(procfs_create_inferior):  New tiny function that calls fork_inferior.
(child_xfer_memory):  Rename to static procfs_xfer_memory.
(store_inferior_registers):  Rename to static procfs_store_registers.
(inferior_proc_init):  Rename to static procfs_init_inferior.
(procfs_attach, procfs_detach, procfs_prepare_to_store,
procfs_files_info, procfs_open, procfs_mourn_inferior,
procfs_can_run):  Slightly mangled copies of the corresponding
child_XXX routines from inftarg.c.
(proc_wait):  Renamed to static procfs_wait.
(child_resume):  Rename to static procfs_resume.
(fetch_inferior_registers):  Rename to static procfs_fetch_registers.
(initialize_proc_fs):  Rename to initialize_procfs.  Set up
procfs_ops, too.
* xm-irix4.h, xm-sysv4.h (CREATE_INFERIOR_HOOK):  No longer needed.

32 years ago* putenv.c: index -> strchr.
John Gilmore [Sat, 26 Sep 1992 09:04:24 +0000 (09:04 +0000)]
* putenv.c:  index -> strchr.
* regex.c:  Always rename bcopy to memcpy, etc.
FIXME:  Eventually do the renames rather than use #define's.
* sparc-tdep.c (deferred_stores):  Moved from sparc-xdep.c.
Fix bcopy->memcpy.
* sparc-xdep.c:  Move deferred_stores to target dependent.

32 years agoAdd inftarg.o and fork-child.o to all *.mh that reference infptrace.o.
John Gilmore [Sat, 26 Sep 1992 08:08:42 +0000 (08:08 +0000)]
Add inftarg.o and fork-child.o to all *.mh that reference infptrace.o.
Add fork-child.o to all *.mh that reference procfs.o.

32 years ago* Makefile.in: Remove inftarg.[co], since it is now included via
John Gilmore [Sat, 26 Sep 1992 08:06:45 +0000 (08:06 +0000)]
* Makefile.in: Remove inftarg.[co], since it is now included via
config/*.mh files.
* config/*.mh:  Add inftarg.o and fork-child.o to all *.mh that
reference infptrace.o.  Add fork-child.o to all *.mh that
reference procfs.o.

32 years ago* i960-pinsn.c: Change bzero to memset.
John Gilmore [Sat, 26 Sep 1992 05:41:54 +0000 (05:41 +0000)]
* i960-pinsn.c:  Change bzero to memset.
* sparc-pinsn.c:  Change index to strchr.

32 years agoLint; remove bcopy/bzero.
John Gilmore [Sat, 26 Sep 1992 05:39:13 +0000 (05:39 +0000)]
Lint; remove bcopy/bzero.

32 years agoLint
John Gilmore [Sat, 26 Sep 1992 05:34:14 +0000 (05:34 +0000)]
Lint

32 years agoSplit non-target-dependent code out of target_attach routines.
John Gilmore [Sat, 26 Sep 1992 05:20:24 +0000 (05:20 +0000)]
Split non-target-dependent code out of target_attach routines.

* target.h:  Comments on target_attach args and results.
* infcmd.c (attach_command): Check for existing execution, call
target_attach, set up terminal status and wait_for_inferior, wait
for the attach status, and do normal_stop.
* inftarg.c (child_attach):  Remove target independent stuff.
* remote-adapt.c (adapt_attach):  Ditto.
* remote-mm.c (mm_attach):  Ditto.
* remote-udi.c (udi_attach):  Ditto.
* remote-vx.c (vx_attach):  Ditto.

Cleanup.

* remote-hms.c (hms_attach):  Remove completely, it was useless.
* remote-mm.c, remote-hms.c, remote-udi.c, remote-adapt.c:  Remove
commented-out start_remote calls.
* remote-hms.c, remote-adapt.c, remote-mm.c, remote-udi.c: Remove
DENTER and DEXIT macros and their calls.  Use a real debugger --
like gdb -- to see what functions are being called when.

32 years agoAdd Adobe a.out support.
John Gilmore [Sat, 26 Sep 1992 02:20:05 +0000 (02:20 +0000)]
Add Adobe a.out support.

* aout-adobe.c:  New file.  So far, only reads a.out.adobe.  FIXME.
* config/adobe.mt:  Add.
* configure.in (*-adobe-* target):  Add.
* targets.c (a_out_adobe_vec):  Add.
* Makefile.in:  add aout-adobe.c.

* configure.in:  Put two dashes in all entries to be matched.
Add comments to remind people to do this.
Reorder all entries that match manufacturer names, to occur
last, so they will only be matched if no more specific match
occurs.  Remove manufacturers `aout', `bout', `coff', and `elf'.

32 years ago* infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.
John Gilmore [Sat, 26 Sep 1992 01:49:18 +0000 (01:49 +0000)]
* infrun.c, inftarg.c, inferior.h:  Comment and lint cleanups.

32 years agoFri Sep 25 18:18:52 1992 Ian Lance Taylor (ian@cygnus.com)
Ian Lance Taylor [Sat, 26 Sep 1992 01:20:04 +0000 (01:20 +0000)]
Fri Sep 25 18:18:52 1992  Ian Lance Taylor  (ian@cygnus.com)

* tc-m68k.h: if M68KCOFF, define DOT_LABEL_PREFIX (to require
local labels to start with a .) and set REGISTER_PREFIX to %.
tc-m68k.c (m68k_reg_parse): accept REGISTER_PREFIX if defined.

32 years agoComment changes.
John Gilmore [Sat, 26 Sep 1992 00:55:33 +0000 (00:55 +0000)]
Comment changes.

32 years agoUpdate patches to current version of devo.
Stu Grossman [Sat, 26 Sep 1992 00:45:52 +0000 (00:45 +0000)]
Update patches to current version of devo.

32 years ago* tm-sparc.h, dbxread.c (read_ofile_symtab): Install Jim Wilson's
Stu Grossman [Fri, 25 Sep 1992 22:59:27 +0000 (22:59 +0000)]
* tm-sparc.h, dbxread.c (read_ofile_symtab):  Install Jim Wilson's
fix to differentiate between gcc1 & gcc2 compiled files so that we
can debug calls that pass structs as args correctly.
* symmisc.c (dump_symtab):  If block was compiled with gcc, say
so, and what version.

32 years ago* remote.c (remote_wait): Make regs be char to avoid picayune
Stu Grossman [Fri, 25 Sep 1992 22:23:54 +0000 (22:23 +0000)]
* remote.c (remote_wait):  Make regs be char to avoid picayune
ANSI compiler warnings.

* energize.h:  Move all external struct decls to inside of
__STDC__, add prototype for energize_shell_wait().
* energize.c (getpty):  Clean up, make us really get a controlling
terminal.
* (energize_initialize):  Disable SIGIO prior to setting up for
I/O interrupts.  Move setsid(), et. al. to getpty().
* (energize_shell_wait):  New routine to wait for things started
via the shell command, uses wait() instead of /dev/proc.
* Also, add prototype for execute_command_1().

32 years ago * elf.c (section_from_elf_index): Return bfd_abs_section, not 0,
Brendan Kehoe [Fri, 25 Sep 1992 22:05:15 +0000 (22:05 +0000)]
* elf.c (section_from_elf_index): Return bfd_abs_section, not 0,
since we should never have a NULL section.
(elf_slurp_symbol_table): If st_shndx doesn't match any of our
tests, set the section to bfd_abs_section.

32 years agodefined(__STDC__) / __STDC__==1 changes recommended by gnu
Ken Raeburn [Fri, 25 Sep 1992 21:14:46 +0000 (21:14 +0000)]
defined(__STDC__) / __STDC__==1 changes recommended by gnu

32 years ago* Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o, lexsup.o,
Ken Raeburn [Fri, 25 Sep 1992 21:05:20 +0000 (21:05 +0000)]
* Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o, lexsup.o,
mri.o, relax.o): Indicate dependence on ldgram.h.

* ld.h (strip_symbols_type): Add value STRIP_SOME.
* ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
(lang_add_keepsyms_file): New function.
* ldlex.l: Handle "-retain-symbols-file".
* ldsym.c (keepsyms_file, kept_syms): New vars.
(process_keepsyms): New functihon; reads file, marks symbols for saving.
(write_file_locals): File symbols should always be kept.
(ldsym_write): Warn about "-retain-symbols-file" overriding "-S" and "-s".
Process retain-symbols file before setting symtab.
* ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
(keepsyms_file, kept_syms): Declare them.

* ldmain.c (main): Non-fatal errors should still cause non-zero exit status
even with -r.

32 years ago* configure.in: Add ncr* configuration.
Stu Grossman [Fri, 25 Sep 1992 19:54:06 +0000 (19:54 +0000)]
* configure.in:  Add ncr* configuration.
* z8k-dis.c (struct instr_data_s):  Make instr_asmsrc char to make
picayune ANSI compilers happy.

32 years ago* readline.c (clear_to_eol, rl_generic_bind): Make static.
Stu Grossman [Fri, 25 Sep 1992 19:48:50 +0000 (19:48 +0000)]
* readline.c (clear_to_eol, rl_generic_bind):  Make static.
(rl_digit_loop):  Add arg to call to rl_message().
* vi_mode.c (rl_vi_first_print):  Add arg to call to
rl_back_to_indent().

32 years ago * inftarg.c (child_create_inferior, child_attach,
K. Richard Pixley [Fri, 25 Sep 1992 19:19:08 +0000 (19:19 +0000)]
* inftarg.c (child_create_inferior, child_attach,
  child_mourn_inferior): collect unix child process stratum
  functions which live below the target vector into this file to
  facilitate host/target/native split.  Also, make them static.
* inflow.c (child_mourn_inferior): removed.
* infrun.c (child_create_inferior, child_attach): removed.
  (resume): becomes global so that functions below the
  target vector can find it.
* inferior.h (resume): add prototype.
  (child_mourn_inferior, child_create_inferior, child_attach):
  remove prototypes.

32 years ago * xcoffexec.c (exec_ops): child_attach and child_create_inferior
K. Richard Pixley [Fri, 25 Sep 1992 19:11:25 +0000 (19:11 +0000)]
* xcoffexec.c (exec_ops): child_attach and child_create_inferior
  replaced with find_default_attach and
  find_default_create_inferior.

32 years agoFri Sep 25 11:11:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
Steve Chamberlain [Fri, 25 Sep 1992 18:14:29 +0000 (18:14 +0000)]
Fri Sep 25 11:11:57 1992  Steve Chamberlain  (sac@thepub.cygnus.com)

* coff-z8k.c: getting closer
* coffcode.h (coff_get_relocated_section_contents): allow
EXTRA_CASES hooks for different arches to provide different reloc
types.
* seclet.h: #ifndef around it to allow multiple inclusion
* srec.c: minor doc fix

32 years agoFri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
Steve Chamberlain [Fri, 25 Sep 1992 18:11:04 +0000 (18:11 +0000)]
Fri Sep 25 11:08:01 1992  Steve Chamberlain  (sac@thepub.cygnus.com)

Added initial support for the z8k
* z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
* configure.in, Makefile.in: modified to reflect above

* ldlang.c (lang_check): when linking conflicting architectures,
make the output file reflect at least one of the bad inputs.

32 years agouse _filtered routines for printing so symbolic addresses show up in the right place
Ken Raeburn [Fri, 25 Sep 1992 17:23:59 +0000 (17:23 +0000)]
use _filtered routines for printing so symbolic addresses show up in the right place

32 years agokeep corelow.c
K. Richard Pixley [Fri, 25 Sep 1992 17:04:36 +0000 (17:04 +0000)]
keep corelow.c

32 years ago Separate core functions along target vector in preparation for
K. Richard Pixley [Fri, 25 Sep 1992 17:03:55 +0000 (17:03 +0000)]
    Separate core functions along target vector in preparation for
        native support.  Functions above vector now live in core.c.  Those
        below in corelow.c.

* core.c (solib_add_stub, core_close, core_open, core_detach,
  get_core_registers, core_files_info, core_ops): moved to corelow.c
  (_initialize_core): removed addition of core_ops target.
* corelow.c: new file.
(solib_add_stub, core_close, core_open, core_detach,
get_core_registers, core_files_info, core_ops): moved from core.c
(_initialize_corelow): new function.
* gdbcore.h (core_open, core_detach): added prototypes.
(core_ops): add forward declaration.
* Makefile.in (SFILES_MAINDIR): add core.c
(OBS): add core.o
(TSOBS): change core.o to corelow.o

32 years agoz8kgen: temp file to generate z8k-opc.h from
Steve Chamberlain [Thu, 24 Sep 1992 20:28:14 +0000 (20:28 +0000)]
z8kgen: temp file to generate z8k-opc.h from

z8k-dis.c: fixed various bugs

32 years ago* listing.c (debugging_pseudo): Add stabs and stabn as things to ignore.
Brendan Kehoe [Thu, 24 Sep 1992 19:43:45 +0000 (19:43 +0000)]
* listing.c (debugging_pseudo): Add stabs and stabn as things to ignore.

32 years ago* m68k-tdep.c (m68k_saved_pc_after_call): Use 'GDB_TARGET_IS_SUN3'
Stu Grossman [Wed, 23 Sep 1992 18:19:19 +0000 (18:19 +0000)]
* m68k-tdep.c (m68k_saved_pc_after_call):  Use 'GDB_TARGET_IS_SUN3'
instead of 'sun' predefined symbol so that trap analysis code is
enabled only when the TARGET is a sun3.

32 years agofix repeated ext_format_i960 local decls so sun4 cc accepts it
Ken Raeburn [Tue, 22 Sep 1992 22:02:54 +0000 (22:02 +0000)]
fix repeated ext_format_i960 local decls so sun4 cc accepts it

32 years agofix repeated ext_format_i960 local decls so sun4 cc accepts it
Ken Raeburn [Tue, 22 Sep 1992 21:55:21 +0000 (21:55 +0000)]
fix repeated ext_format_i960 local decls so sun4 cc accepts it

32 years agoTue Sep 22 13:02:07 1992 Sean Eric Fagan (sef@cygnus.com)
Sean Eric Fagan [Tue, 22 Sep 1992 20:07:55 +0000 (20:07 +0000)]
Tue Sep 22 13:02:07 1992  Sean Eric Fagan  (sef@cygnus.com)

* obj-coffbfd.c (do_relocs_for,fill_section): now allocate all
sections starting from zero, rather than making them consecutive.
This makes subsequent reloc calculations easier, esp if the
object format doesn't understand addends. (obj_coff_lcomm): (maybe
temporarily) allocate lcomm in .data rather than in .bss.  It
seems that some tools can't cope with a non-zero sized bss
before linkage.

32 years agocpu32 and -mno-688?1 support from p3
Ken Raeburn [Tue, 22 Sep 1992 19:24:33 +0000 (19:24 +0000)]
cpu32 and -mno-688?1 support from p3

32 years agocpu32 and -mno-688?1 support from p3
Ken Raeburn [Tue, 22 Sep 1992 19:19:02 +0000 (19:19 +0000)]
cpu32 and -mno-688?1 support from p3

32 years agoRoll bask the WRS change, since it had already been applied, and the
Ian Lance Taylor [Tue, 22 Sep 1992 15:32:03 +0000 (15:32 +0000)]
Roll bask the WRS change, since it had already been applied, and the
reversed patch they sent blew my mind.

32 years ago* mips-pinsn.c (print_insn_arg, case 'B'): Disassemble `break'
John Gilmore [Tue, 22 Sep 1992 07:46:14 +0000 (07:46 +0000)]
* mips-pinsn.c (print_insn_arg, case 'B'):  Disassemble `break'
instruction's argument.  Patch from jonathan@cs.stanford.edu
(Jonathan Stone).

32 years agoDescribe coding style of GDB.
John Gilmore [Tue, 22 Sep 1992 07:34:45 +0000 (07:34 +0000)]
Describe coding style of GDB.

32 years agoBreak the thread of control that implies that a unix child
John Gilmore [Tue, 22 Sep 1992 07:23:35 +0000 (07:23 +0000)]
Break the thread of control that implies that a unix child
process will be the default target.

* target.c (find_default_run_target, find_default_attach,
find_default_create_inferior, return_zero):  new functions.
(cleanup_target):  Make return_zero the default for to_can_run.

* exec.c (exec_ops), core.c (core_ops):  Replace child_attach and
child_create_inferior references with find_default_XXX instead.

* target.h (struct target_ops): new field, to_can_run.
(find_default_attach, find_default_create_inferior):  new prototypes.
(target_can_run): new macro.

* Also added a zero (default) to_can_run element to all static
struct target_ops initializations throughout GDB, except:
* inftarg.c (child_ops): Use new child_can_run() to enable child runs.

* infrun.c (child_create_inferior):  Clean up error handling when
no exec file is specified.
(child_attach):  Don't require exec file.

32 years agoRemove kill_inferior_fast, in favor of target_kill, which goes
John Gilmore [Tue, 22 Sep 1992 05:23:57 +0000 (05:23 +0000)]
Remove kill_inferior_fast, in favor of target_kill, which goes
through the target vector.

* inferior.h (kill_inferior_fast): remove declaration.

* main.c (disconnect): call quit_cover using catch_errors rather
than calling kill_inferior_fast directly.  New way goes through
the target vector, handles attached processes, and writes
command history if appropriate.
(quit_cover): new function, wrapper for quit_command.

* convex-xdep.c, go32-xdep.c, hppabsd-xdep.c, hppahpux-xdep.c,
infptrace.c, procfs.c:  Removed all instances of kill_inferior_fast,
inlining them into the local kill_inferior when needed.

32 years ago* infrun.c (_initialize_infrun): Alias `i handle' == `i signals'.
John Gilmore [Tue, 22 Sep 1992 02:33:11 +0000 (02:33 +0000)]
* infrun.c (_initialize_infrun):  Alias `i handle' == `i signals'.
* stabsread.c (read_struct_type): Simplify complicated expression
for dumb DECstation compiler.

32 years agoMinor wording changes.
John Gilmore [Tue, 22 Sep 1992 02:32:39 +0000 (02:32 +0000)]
Minor wording changes.

32 years agoMinor wording changes.
John Gilmore [Tue, 22 Sep 1992 02:26:50 +0000 (02:26 +0000)]
Minor wording changes.

32 years agoPatches from WRS:
Ian Lance Taylor [Mon, 21 Sep 1992 22:36:04 +0000 (22:36 +0000)]
Patches from WRS:

Mon Sep 21 14:54:35 1992  Ian Lance Taylor  (ian@cygnus.com)

* m68k-pinsn (print_insn_arg, fetch_arg): added support for
operands to memory management instructions, from WRS.

32 years agoPatches from WRS:
Ian Lance Taylor [Mon, 21 Sep 1992 22:31:41 +0000 (22:31 +0000)]
Patches from WRS:

Mon Sep 21 14:44:17 1992  Ian Lance Taylor  (ian@cygnus.com)

* tc-m68k.c (m68k_ip): fixed move16 operand handling, from WRS.

32 years agoPatches from WRS:
Ian Lance Taylor [Mon, 21 Sep 1992 22:30:36 +0000 (22:30 +0000)]
Patches from WRS:

Mon Sep 21 14:41:30 1992  Ian Lance Taylor  (ian@cygnus.com)

* mh-irix4: put in patches from WRS.

32 years agoPatches from WRS:
Ian Lance Taylor [Mon, 21 Sep 1992 22:29:51 +0000 (22:29 +0000)]
Patches from WRS:

Mon Sep 21 14:39:56 1992  Ian Lance Taylor  (ian@cygnus.com)

* m68k-pinsn (print_insn_arg, fetch_arg): added support for
operands to memory management instructions, from WRS.

32 years agoPatches from WRS:
Ian Lance Taylor [Mon, 21 Sep 1992 22:28:42 +0000 (22:28 +0000)]
Patches from WRS:

Mon Sep 21 14:33:58 1992  Ian Lance Taylor  (ian@cygnus.com)

* hosts/hp9000.h, hosts/irix3.h: changes from WRS.

32 years agotense test typo
K. Richard Pixley [Mon, 21 Sep 1992 20:01:00 +0000 (20:01 +0000)]
tense test typo

32 years agofix typo
K. Richard Pixley [Mon, 21 Sep 1992 19:47:39 +0000 (19:47 +0000)]
fix typo

32 years agoMore conditional markup so HMS (Hitachi) can have the configuration
Roland Pesch [Mon, 21 Sep 1992 17:27:34 +0000 (17:27 +0000)]
More conditional markup so HMS (Hitachi) can have the configuration
of their dreams.

32 years ago * configure.in: Use i386-elf for all i386/i486 sysv4 hosts, not
Fred Fish [Sun, 20 Sep 1992 15:50:12 +0000 (15:50 +0000)]
* configure.in:  Use i386-elf for all i386/i486 sysv4 hosts, not
just ncr.