From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32291 invoked by alias); 21 Mar 2005 19:55:18 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32232 invoked from network); 21 Mar 2005 19:55:14 -0000 Received: from unknown (HELO coe.casa.cgf.cx) (66.30.17.189) by sourceware.org with SMTP; 21 Mar 2005 19:55:14 -0000 Received: by coe.casa.cgf.cx (Postfix, from userid 201) id 76A664002D7; Mon, 21 Mar 2005 14:55:14 -0500 (EST) Date: Mon, 21 Mar 2005 19:55:00 -0000 From: Christopher Faylor To: gdb-patches@sourceware.org Subject: [committed] Don't clear active win32 threads Message-ID: <20050321195514.GA30319@coe.casa.cgf.cx> Mail-Followup-To: gdb-patches@sourceware.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2005-03/txt/msg00271.txt.bz2 I just committed this. Hopefully, it will fix a long-standing stupid thinko. cgf 2005-03-21 Christopher Faylor * 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. Index: win32-nat.c =================================================================== RCS file: /cvs/src/src/gdb/win32-nat.c,v retrieving revision 1.101 diff -u -p -r1.101 win32-nat.c --- win32-nat.c 8 Oct 2004 20:29:56 -0000 1.101 +++ win32-nat.c 21 Mar 2005 19:51:01 -0000 @@ -1440,7 +1441,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 (); @@ -1586,6 +1586,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; @@ -1858,6 +1859,7 @@ child_create_inferior (char *exec_file, } } + child_init_thread_list (); ret = CreateProcess (0, args, /* command line */ NULL, /* Security */