extern struct target_ops child_ops;
static void child_stop PARAMS ((void));
-static int child_thread_alive PARAMS ((int));
+static int win32_child_thread_alive PARAMS ((int));
static int last_sig = 0; /* Set if a signal was received from the
debugged process */
of error; store status through argument pointer OURSTATUS. */
static int
-handle_load_dll (char *dummy)
+handle_load_dll (PTR dummy)
{
LOAD_DLL_DEBUG_INFO * event = ¤t_event.u.LoadDll;
DWORD dll_name_ptr;
FIXME: Is this the real reason that we need the 0x1000 ? */
printf_unfiltered ("%x:%s", event->lpBaseOfDll, dll_name);
- symbol_file_add (dll_name, 0, (int) event->lpBaseOfDll + 0x1000, 0, 0, 0);
+ symbol_file_add (dll_name, 0, (int) event->lpBaseOfDll + 0x1000, 0, 0, 0, 0, 1);
printf_unfiltered ("\n");
out:
struct target_ops child_ops ;
-static void init_child_ops(void)
+static void
+init_child_ops(void)
{
child_ops.to_shortname = "child";
child_ops.to_longname = "Win32 child process";
child_ops.to_mourn_inferior = child_mourn_inferior;
child_ops.to_can_run = child_can_run;
child_ops.to_notice_signals = 0;
- child_ops.to_thread_alive = child_thread_alive;
+ child_ops.to_thread_alive = win32_child_thread_alive;
child_ops.to_stop = child_stop;
child_ops.to_stratum = process_stratum;
child_ops.DONT_USE = 0;
by "polling" it. If WaitForSingleObject returns WAIT_OBJECT_0
it means that the pid has died. Otherwise it is assumed to be alive. */
static int
-child_thread_alive (int pid)
+win32_child_thread_alive (int pid)
{
return WaitForSingleObject(thread_rec (pid, FALSE)->h, 0) == WAIT_OBJECT_0 ?
FALSE : TRUE;