aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1992-10-01Add `command hooks' and a hook for inferior program stopping.John Gilmore3-3/+59
* 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.
1992-09-30Fix bug where all the opcodes were one offMike Werner1-0/+5
1992-09-30missed a ChangeLog entryK. Richard Pixley1-0/+1
1992-09-30Native file renaming.K. Richard Pixley7-10/+346
* 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.
1992-09-30Remove energize from configdirs. Only install via energize-patches.Stu Grossman1-1/+1
1992-09-30* readline.c (rl_complete_internal): Cast alloca to (char *) toStu Grossman2-1/+6
avoid warning.
1992-09-30Save nat-sparc.c as well...Fred Fish1-0/+1
1992-09-30Save nat-trash.h for non-sun4 configures of sanitized copies of currentFred Fish1-0/+1
checked in sources.
1992-09-30Keep nat-sun4os4.h so current checked in Sanitized versions will build.Fred Fish1-0/+1
1992-09-30Add energize to configdirs.Stu Grossman1-1/+1
1992-09-30added copyright noticeSteve Chamberlain1-0/+4
1992-09-30add z8kgenSteve Chamberlain1-1/+1
1992-09-30 * config/z8ksim.mt: new fileSteve Chamberlain3-1/+8
1992-09-30Host/target/native split for sun4.K. Richard Pixley1-1/+3
* 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.
1992-09-30Host/target/native split for sun4.K. Richard Pixley8-18/+355
* 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.
1992-09-29Add COPYING and COPYING.LIB.Per Bothner1-0/+2
1992-09-29Break the direct connection from core_file_command to anyK. Richard Pixley2-3/+19
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.
1992-09-29Tue Sep 29 14:11:18 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-0/+11
* 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.
1992-09-29bout.c: Removed some unused variablesKen Raeburn1-0/+2
1992-09-29coffcode.h (coff_section_symbol): Create section if it doesn't exist.Ken Raeburn1-0/+5
1992-09-29 * obj-coffbfd.c (write_object_file): don't fixup for the z8kSteve Chamberlain2-1/+6
* tc-z8k.[ch]: lots of bug fixes
1992-09-29 * z8k-dis.c (unparse_instr): prettier tabsSteve Chamberlain3-30/+35
* z8kgen.c -> z8k-opc.h: bug fixes in tables
1992-09-29Tue Sep 29 10:51:55 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor2-0/+12
* 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.
1992-09-29Tue Sep 29 10:19:00 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor3-0/+14
* xm-hp300hpux.h: define MEM_FNS_DECLARED; include <sys/ptrace.h> for infptrace.c. config/hp300hpux.mh: ALLOCA1 was not defined.
1992-09-29Added new hp9000.mh file.Ian Lance Taylor1-0/+1
1992-09-29HP/UX needs -Wp,-P when compiling with -O (comment only, since theIan Lance Taylor1-0/+4
default is not to use -O).
1992-09-29Tue Sep 29 08:30:21 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor4-13/+18
* 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.
1992-09-29Yet another rev. We keep the _filtered stuff for energize.Stu Grossman1-40/+936
1992-09-29* breakpoint.c, exec.c, language.c, main.c, printcmd.c, symfile.c,Stu Grossman4-39/+138
target.c, valprint.c: Use unfiltered forms of f/printf, et. al. until we can figure out a better way to do paging.
1992-09-29tc-i960.c: use NO_RELOCKen Raeburn1-0/+4
1992-09-28energize.c (energize_wait): Use new interfaces to native/target routines.Stu Grossman1-10/+3
1992-09-28Use correct directory for .mh files so that patch can find them.Stu Grossman1-2/+2
1992-09-28Use new interfaces to native/target stuff.Stu Grossman1-70/+78
1992-09-27Preserve fork-child.c.Fred Fish1-0/+1
1992-09-27Keep adobe.h, needed to compile bfd/aout-adobe.cFred Fish1-1/+5
1992-09-27Keep aout-adobe.c, need to compile sanitized versions.Fred Fish1-0/+1
1992-09-26Make sure flex is built before stuff that might use it.David Henkel-Wallace1-1/+1
1992-09-26Back out WRS changes, since they are wrong.Ian Lance Taylor1-1/+1
1992-09-26* config/hppabsd.mh, config.hppahpux.mh: Remove various bogosity.John Gilmore2-31/+6
* hosts/hppahpux.h: Remove bcopy and index circumventions.
1992-09-26* config/hppabsd.mh, config/hppahpux.mh: Use standard coredep.o.John Gilmore4-9/+8
Rename all HPPA files to fit into unique DOS filenames: * *hppabsd* => *hppab* * *hppahpux* => *hppah*
1992-09-26Rename all HPPA files to fit into unique DOS filenames:John Gilmore9-0/+4068
*hppabsd* => *hppab* *hppahpux* => *hppah*
1992-09-26* findvar.c (supply_register): Add CLEAN_UP_REGISTER_VALUE hook.John Gilmore4-21/+59
* 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.
1992-09-26Make the /proc support a target-struct in its own right.John Gilmore5-81/+551
* 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.
1992-09-26* putenv.c: index -> strchr.John Gilmore4-14/+18
* 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.
1992-09-26Add inftarg.o and fork-child.o to all *.mh that reference infptrace.o.John Gilmore46-46/+45
Add fork-child.o to all *.mh that reference procfs.o.
1992-09-26* Makefile.in: Remove inftarg.[co], since it is now included viaJohn Gilmore4-406/+391
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.
1992-09-26* i960-pinsn.c: Change bzero to memset.John Gilmore3-6/+16
* sparc-pinsn.c: Change index to strchr.
1992-09-26Lint; remove bcopy/bzero.John Gilmore2-3/+10
1992-09-26LintJohn Gilmore1-0/+1
1992-09-26Split non-target-dependent code out of target_attach routines.John Gilmore8-320/+52
* 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.