From dc177b7a5114d1d8385ee3706188aa4e4f675676 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 3 Jul 2008 17:38:08 +0000 Subject: * 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. --- gdb/config/i386/nm-cygwin.h | 1 - gdb/config/i386/nm-i386gnu.h | 3 --- 2 files changed, 4 deletions(-) (limited to 'gdb/config') diff --git a/gdb/config/i386/nm-cygwin.h b/gdb/config/i386/nm-cygwin.h index 5222b60..b273439 100644 --- a/gdb/config/i386/nm-cygwin.h +++ b/gdb/config/i386/nm-cygwin.h @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#define ATTACH_NO_WAIT #define ADD_SHARED_SYMBOL_FILES dll_symbol_command void dll_symbol_command (char *, int); diff --git a/gdb/config/i386/nm-i386gnu.h b/gdb/config/i386/nm-i386gnu.h index 2be95b4..ee1fe73f 100644 --- a/gdb/config/i386/nm-i386gnu.h +++ b/gdb/config/i386/nm-i386gnu.h @@ -26,9 +26,6 @@ extern char *gnu_target_pid_to_str (int pid); -/* Don't do wait_for_inferior on attach. */ -#define ATTACH_NO_WAIT - /* Thread flavors used in re-setting the T bit. */ #define THREAD_STATE_FLAVOR i386_REGS_SEGS_STATE #define THREAD_STATE_SIZE i386_THREAD_STATE_COUNT -- cgit v1.1