aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-06 20:51:19 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-06 20:51:19 +0000
commitfcbc95a72a768a2f83981961c47337e3d7fcc5ed (patch)
treee003790884657ba1de9b6ede430e781ad4859bf3 /gdb/target.h
parent4b2febd355e97ff57838f842def9b358f1a766d0 (diff)
downloadgdb-fcbc95a72a768a2f83981961c47337e3d7fcc5ed.zip
gdb-fcbc95a72a768a2f83981961c47337e3d7fcc5ed.tar.gz
gdb-fcbc95a72a768a2f83981961c47337e3d7fcc5ed.tar.bz2
* target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
* target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook. * infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with code which looks for those two waitkinds. Use switch statement. * config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with CHILD_SPECIAL_WAITSTATUS.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 6b5d9bb..92a59ab 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1,5 +1,5 @@
/* Interface between GDB and target environments, including files and processes
- Copyright 1990, 1991, 1992 Free Software Foundation, Inc.
+ Copyright 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
Contributed by Cygnus Support. Written by John Gilmore.
This file is part of GDB.
@@ -61,7 +61,16 @@ enum target_waitkind {
/* The program has terminated with a signal. Which signal is in
value.sig. */
- TARGET_WAITKIND_SIGNALLED
+ TARGET_WAITKIND_SIGNALLED,
+
+ /* The program is letting us know that it dynamically loaded something
+ (e.g. it called load(2) on AIX). */
+ TARGET_WAITKIND_LOADED,
+
+ /* Nothing happened, but we stopped anyway. This perhaps should be handled
+ within target_wait, but I'm not sure target_wait should be resuming the
+ inferior. */
+ TARGET_WAITKIND_SPURIOUS
};
/* The numbering of these signals is chosen to match traditional unix
@@ -138,6 +147,10 @@ enum target_signal {
/* Some signal we don't know about. */
TARGET_SIGNAL_UNKNOWN,
+ /* Use whatever signal we use when one is not specifically specified
+ (for passing to proceed and so on). */
+ TARGET_SIGNAL_DEFAULT,
+
/* Last and unused enum value, for sizing arrays, etc. */
TARGET_SIGNAL_LAST
};
@@ -286,8 +299,9 @@ extern void
target_detach PARAMS ((char *, int));
/* Resume execution of the target process PID. STEP says whether to
- single-step or to run free; SIGGNAL is the signal value (e.g. SIGINT) to be
- given to the target, or zero for no signal. */
+ single-step or to run free; SIGGNAL is the signal to be given to
+ the target, or TARGET_SIGNAL_0 for no signal. The caller may not
+ pass TARGET_SIGNAL_DEFAULT. */
#define target_resume(pid, step, siggnal) \
(*current_target->to_resume) (pid, step, siggnal)