From a65841d7681adbf2d768b49a84de314ffadf3cfe Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Thu, 1 Oct 1992 09:57:36 +0000 Subject: 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. --- gdb/tm-symmetry.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/tm-symmetry.h') diff --git a/gdb/tm-symmetry.h b/gdb/tm-symmetry.h index 389d4eb..90c212e 100644 --- a/gdb/tm-symmetry.h +++ b/gdb/tm-symmetry.h @@ -84,10 +84,14 @@ i386_skip_prologue PARAMS ((int)); #define INVALID_FLOAT(p, len) (0) +#if 0 + --- this code can't be used unless we know we are running native, + since it uses host specific ptrace calls. /* code for 80387 fpu. Functions are from i386-dep.c, copied into * symm-dep.c. */ #define FLOAT_INFO { i386_float_info(); } +#endif /* Say how long (ordinary) registers are. */ -- cgit v1.1