* target.h (child_ops): Declare.
* inftarg.c (child_ops): Move from here ...
* target.c (child_ops): ... to here.
* wince.c (child_ops): Delete extern declaration.
* win32-nat.c (child_ops): Delete extern declaration.
* linux-nat.c (child_ops): Delete extern declaration.
* hpux-thread.c (child_ops): Delete extern declaration.
+2004-09-29 Andrew Cagney <cagney@gnu.org>
+
+ * target.h (child_ops): Declare.
+ * inftarg.c (child_ops): Move from here ...
+ * target.c (child_ops): ... to here.
+ * wince.c (child_ops): Delete extern declaration.
+ * win32-nat.c (child_ops): Delete extern declaration.
+ * linux-nat.c (child_ops): Delete extern declaration.
+ * hpux-thread.c (child_ops): Delete extern declaration.
+
2004-09-28 Mark Kettenis <kettenis@gnu.org>
* configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
#include "gdbcore.h"
extern int child_suppress_run;
-extern struct target_ops child_ops; /* target vector for inftarg.c */
extern void _initialize_hpux_thread (void);
extern char **environ;
-struct target_ops child_ops;
-
int child_suppress_run = 0; /* Non-zero if inftarg should pretend not to
be a runnable target. Used by targets
that can sit atop inftarg, such as HPUX
static int debug_linux_nat;
-extern struct target_ops child_ops;
-
static int linux_parent_pid;
struct simple_pid_list
/* This module's target-specific operations. */
static struct target_ops linux_nat_ops;
-/* The standard child operations. */
-extern struct target_ops child_ops;
-
/* Since we cannot wait (in linux_nat_wait) for the initial process and
any cloned processes with a single call to waitpid, we have to use
the WNOHANG flag and call waitpid in a loop. To optimize
static void debug_to_stop (void);
+/* NOTE: cagney/2004-09-29: Many targets reference this variable in
+ wierd and mysterious ways. Putting the variable here lets those
+ wierd and mysterious ways keep building while they are being
+ converted to the inferior inheritance structure. */
+struct target_ops child_ops;
+
/* Pointer to array of target architecture structures; the size of the
array; the current index into the array; the allocated size of the
array. */
/* Blank target vector entries are initialized to target_ignore. */
void target_ignore (void);
+extern struct target_ops child_ops;
+
#endif /* !defined (TARGET_H) */
#define DEBUG_MEM(x) if (debug_memory) printf_unfiltered x
#define DEBUG_EXCEPT(x) if (debug_exceptions) printf_unfiltered x
-/* Forward declaration */
-extern struct target_ops child_ops;
-
static void child_stop (void);
static int win32_child_thread_alive (ptid_t);
void child_kill_inferior (void);
static char *remote_upload = NULL; /* Set by set remoteupload */
static int remote_add_host = 0;
-/* Forward declaration */
-extern struct target_ops child_ops;
-
static int win32_child_thread_alive (ptid_t);
void child_kill_inferior (void);
#define DEBUG_MEM(x) if (debug_memory) printf_unfiltered x
#define DEBUG_EXCEPT(x) if (debug_exceptions) printf_unfiltered x
-/* Forward declaration */
-extern struct target_ops child_ops;
-
static void child_stop (void);
static int win32_child_thread_alive (ptid_t);
void child_kill_inferior (void);