diff options
author | Pedro Alves <palves@redhat.com> | 2009-07-20 15:18:24 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-07-20 15:18:24 +0000 |
commit | b4d1e8c7001940584b7e63af5411535e42785690 (patch) | |
tree | e5d030d113ffc2349885622e5ce886676f47e90f /gdb/gnu-nat.h | |
parent | b5758fe446964d9f8d5b31ba2deb6071040b25cf (diff) | |
download | gdb-b4d1e8c7001940584b7e63af5411535e42785690.zip gdb-b4d1e8c7001940584b7e63af5411535e42785690.tar.gz gdb-b4d1e8c7001940584b7e63af5411535e42785690.tar.bz2 |
* gnu-nat.c: Include "inf-child.h".
(gnu_mourn_inferior): Use the passed in target_ops
instead of the gnu_ops global.
(gnu_create_inferior): Inline `attach_to_child', use the passed in
target_ops instead of the gnu_ops global.
(gnu_can_run): Delete.
(gnu_attach): Use the passed in target_ops instead of the gnu_ops
global.
(gnu_detach): Ditto.
(gnu_prepare_to_store, gnu_open): Delete.
(gnu_store_registers, gnu_fetch_registers): Delete declarations.
(gnu_ops): Delete.
(init_gnu_ops): Delete.
(gnu_target): New.
(_initialize_gnu_nat): Don't call init_gnu_ops or add_target here.
* gnu-nat.h (gnu_target): Declare.
* i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Make
static.
(_initialize_i386gnu_nat): New.
Diffstat (limited to 'gdb/gnu-nat.h')
-rw-r--r-- | gdb/gnu-nat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gnu-nat.h b/gdb/gnu-nat.h index c792bb0..d45dbad 100644 --- a/gdb/gnu-nat.h +++ b/gdb/gnu-nat.h @@ -98,4 +98,8 @@ extern int gnu_debug_flag; do { if (gnu_debug_flag) \ fprintf_unfiltered (gdb_stdlog, "%s:%d: " msg "\r\n", __FILE__ , __LINE__ , ##args); } while (0) +/* Create a prototype generic GNU/Hurd target. The client can + override it with local methods. */ +struct target_ops *gnu_target (void); + #endif /* __GNU_NAT_H__ */ |