diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2005-03-21 19:54:15 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2005-03-21 19:54:15 +0000 |
commit | fa2202dd645808ee9dc21ff89502f9f7b0ee457f (patch) | |
tree | 10b114b9d77bed432f43c412d7d8f35fa780a817 /gdb/win32-nat.c | |
parent | 238f968731947be5648decd491d308cf1db8218a (diff) | |
download | gdb-fa2202dd645808ee9dc21ff89502f9f7b0ee457f.tar.gz |
* win32-nat.c (do_initial_child_stuff): Don't clear the thread list here.
(do_initial_child_stuff): Move clearing of thread list to a place before a
thread ould be created.
(child_attach): Ditto.
Diffstat (limited to 'gdb/win32-nat.c')
-rw-r--r-- | gdb/win32-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index f177af2f16b..fb6b611af18 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -1442,7 +1442,6 @@ do_initial_child_stuff (DWORD pid) current_event.dwProcessId = pid; memset (¤t_event, 0, sizeof (current_event)); push_target (&deprecated_child_ops); - child_init_thread_list (); disable_breakpoints_in_shlibs (1); child_clear_solibs (); clear_proceed_status (); @@ -1588,6 +1587,7 @@ child_attach (char *args, int from_tty) pid = strtoul (args, 0, 0); /* Windows pid */ + child_init_thread_list (); ok = DebugActiveProcess (pid); saw_create = 0; @@ -1860,6 +1860,7 @@ child_create_inferior (char *exec_file, char *allargs, char **env, } } + child_init_thread_list (); ret = CreateProcess (0, args, /* command line */ NULL, /* Security */ |