diff options
author | K. Richard Pixley <rich@cygnus> | 1992-09-25 19:19:08 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1992-09-25 19:19:08 +0000 |
commit | 310cc5704322805474df29cc1d0e89d0819e624c (patch) | |
tree | e58467191b33c35bc622dcb6a5644028dbf8c4f4 /gdb/inferior.h | |
parent | 050d45c5ea27ab282efb06551dff0f29b41a16cd (diff) | |
download | gdb-310cc5704322805474df29cc1d0e89d0819e624c.zip gdb-310cc5704322805474df29cc1d0e89d0819e624c.tar.gz gdb-310cc5704322805474df29cc1d0e89d0819e624c.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r-- | gdb/inferior.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h index ce92228..b6c0724 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -81,6 +81,11 @@ extern int inferior_pid; extern char registers[]; +/* Array of validity bits (one per register). Nonzero at position XXX_REGNUM + means that `registers' contains a valid copy of inferior register XXX. */ + +extern char register_valid[NUM_REGS]; + extern void clear_proceed_status PARAMS ((void)); @@ -91,9 +96,6 @@ extern void kill_inferior PARAMS ((void)); extern void -kill_inferior_fast PARAMS ((void)); - -extern void generic_mourn_inferior PARAMS ((void)); extern void @@ -120,6 +122,9 @@ close_exec_file PARAMS ((void)); extern void reopen_exec_file PARAMS ((void)); +extern void +resume PARAMS ((int, int)); + /* From misc files */ extern void @@ -132,9 +137,6 @@ extern void solib_create_inferior_hook PARAMS ((void)); extern void -child_mourn_inferior PARAMS ((void)); - -extern void child_terminal_info PARAMS ((char *, int)); extern void @@ -160,6 +162,13 @@ detach PARAMS ((int)); extern void child_resume PARAMS ((int, int)); +#ifndef PTRACE_ARG3_TYPE +#define PTRACE_ARG3_TYPE int /* Correct definition for most systems. */ +#endif + +extern int +call_ptrace PARAMS ((int, int, PTRACE_ARG3_TYPE, int)); + /* From procfs.c */ #ifdef USE_PROC_FS @@ -192,12 +201,6 @@ extern void start_remote PARAMS ((void)); extern void -child_create_inferior PARAMS ((char *, char *, char **)); - -extern void -child_attach PARAMS ((char *, int)); - -extern void normal_stop PARAMS ((void)); extern int |