From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6360 invoked by alias); 2 Feb 2006 17:46:05 -0000 Received: (qmail 6352 invoked by uid 22791); 2 Feb 2006 17:46:05 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 02 Feb 2006 17:46:04 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F4iWu-0001US-9f; Thu, 02 Feb 2006 12:46:00 -0500 Date: Thu, 02 Feb 2006 17:46:00 -0000 From: 'Daniel Jacobowitz' To: Dave Korn Cc: cygwin-patches@cygwin.com, gdb-patches@sourceware.org Subject: Re: [patch] fix spurious SIGSEGV faults under Cygwin Message-ID: <20060202174600.GA5696@nevyn.them.org> Mail-Followup-To: Dave Korn , cygwin-patches@cygwin.com, gdb-patches@sourceware.org References: <20060202173806.GA5349@nevyn.them.org> <009401c62820$3ab87730$a501a8c0@CAM.ARTIMI.COM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <009401c62820$3ab87730$a501a8c0@CAM.ARTIMI.COM> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00037.txt.bz2 On Thu, Feb 02, 2006 at 05:43:51PM -0000, Dave Korn wrote: > What I can't see is any point in gdb reading a variable from the > inferior that tells gdb if there is a debugger attached to the > inferior, because I can't see how gdb could read that variable except > by attaching to the inferior, at which point the value in the > variable should always be 'true', shouldn't it? He wrote: > If it turns out that it's expensive, I was thinking that the inferior > could maintain this information in some variable, and just communicate > its location to gdb once at startup, then gdb could simply read that > variable in the process' memory before deciding whether to handle the > fault. "this information" does not refer to "if there is a debugger attached". -- Daniel Jacobowitz CodeSourcery