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 | d460b7f5daae7daa8044d121d25fd41817bd4bd7 (patch) | |
tree | 97bffc8904981a28c3d35a120723e6a4d107c322 /gdb | |
parent | 6e2a91a376d733f08e7ef243888a41eafec7bb6d (diff) | |
download | gdb-d460b7f5daae7daa8044d121d25fd41817bd4bd7.zip gdb-d460b7f5daae7daa8044d121d25fd41817bd4bd7.tar.gz gdb-d460b7f5daae7daa8044d121d25fd41817bd4bd7.tar.bz2 |
* 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')
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/win32-nat.c | 3 | ||||
-rw-r--r-- | gdb/windows-nat.c | 3 |
3 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5836fe2..369c0c2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2005-03-21 Christopher Faylor <cgf@timesys.com> + + * 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. + 2005-03-21 Michael Snyder <msnyder@redhat.com> * mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index f177af2..fb6b611 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 */ diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index f177af2..fb6b611 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-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 */ |