diff options
author | Pedro Alves <palves@redhat.com> | 2008-07-03 17:38:08 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-07-03 17:38:08 +0000 |
commit | dc177b7a5114d1d8385ee3706188aa4e4f675676 (patch) | |
tree | 2a6c70e2e00c8e50a75a2dcc03696a8e760a1463 /gdb/target.h | |
parent | caac88966e74e80449233ec8bc82d9616896a4fa (diff) | |
download | gdb-dc177b7a5114d1d8385ee3706188aa4e4f675676.zip gdb-dc177b7a5114d1d8385ee3706188aa4e4f675676.tar.gz gdb-dc177b7a5114d1d8385ee3706188aa4e4f675676.tar.bz2 |
* config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
* config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
* target.h (struct target_ops): Add to_attach_no_wait member.
(target_attach_no_wait): New.
* target.c (update_current_target): Inherit to_attach_no_wait.
* infcmd.c: Replace ATTACH_NO_WAIT compile time check by
target_attach_no_wait runtime check.
* gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
* win32-nat.c (init_win32_ops): Set to_attach_no_wait in
win32_ops.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index 9641f0d..a7b2bb9 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -412,6 +412,7 @@ struct target_ops int to_has_registers; int to_has_execution; int to_has_thread_control; /* control thread execution */ + int to_attach_no_wait; struct section_table *to_sections; struct section_table @@ -564,6 +565,13 @@ void target_close (struct target_ops *targ, int quitting); #define target_attach(args, from_tty) \ (*current_target.to_attach) (args, from_tty) +/* Some targets don't generate traps when attaching to the inferior, + or their target_attach implementation takes care of the waiting. + These targets must set to_attach_no_wait. */ + +#define target_attach_no_wait \ + (current_target.to_attach_no_wait) + /* The target_attach operation places a process under debugger control, and stops the process. |