From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23506 invoked by alias); 12 Nov 2007 02:06:51 -0000 Received: (qmail 23494 invoked by uid 22791); 12 Nov 2007 02:06:50 -0000 X-Spam-Check-By: sourceware.org Received: from mu-out-0910.google.com (HELO mu-out-0910.google.com) (209.85.134.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 12 Nov 2007 02:06:47 +0000 Received: by mu-out-0910.google.com with SMTP id g7so1333540muf for ; Sun, 11 Nov 2007 18:06:44 -0800 (PST) Received: by 10.86.100.7 with SMTP id x7mr4117846fgb.1194833204796; Sun, 11 Nov 2007 18:06:44 -0800 (PST) Received: from ?192.168.0.4? ( [62.169.107.97]) by mx.google.com with ESMTPS id d2sm5865345nfc.2007.11.11.18.06.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 11 Nov 2007 18:06:43 -0800 (PST) Message-ID: <4737B536.8040106@portugalmail.pt> Date: Mon, 12 Nov 2007 02:06:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org, Lerele Subject: [gdbserver/win32] (2/11) Don't fetch registers from a dead inferior Content-Type: multipart/mixed; boundary="------------010401080400050109040503" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00215.txt.bz2 This is a multi-part message in MIME format. --------------010401080400050109040503 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 136 Hi, Noticed this when adding a few warnings. We shouldn't fetch thread contexts after the inferior has exited. Cheers, Pedro Alves --------------010401080400050109040503 Content-Type: text/x-diff; name="gdbserver_exited_dontfetch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gdbserver_exited_dontfetch.diff" Content-length: 721 2007-11-12 Pedro Alves * win32-low.c (win32_wait): Don't read from the inferior when it has already exited. --- gdb/gdbserver/win32-low.c | 3 --- 1 file changed, 3 deletions(-) Index: src/gdb/gdbserver/win32-low.c =================================================================== --- src.orig/gdb/gdbserver/win32-low.c 2007-11-11 23:12:28.000000000 +0000 +++ src/gdb/gdbserver/win32-low.c 2007-11-11 23:15:20.000000000 +0000 @@ -1390,9 +1390,6 @@ win32_wait (char *status) our_status.value.integer)); *status = 'W'; - - child_fetch_inferior_registers (-1); - return our_status.value.integer; case TARGET_WAITKIND_STOPPED: case TARGET_WAITKIND_LOADED: --------------010401080400050109040503--