From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19249 invoked by alias); 2 Feb 2004 18:37:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 19200 invoked from network); 2 Feb 2004 18:37:20 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 2 Feb 2004 18:37:20 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 1AE572B99; Mon, 2 Feb 2004 13:37:21 -0500 (EST) Message-ID: <401E98E0.5000502@gnu.org> Date: Mon, 02 Feb 2004 18:37:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: Eli Zaretskii Cc: Mark Kettenis , gdb@sources.redhat.com Subject: Re: [RFC] Non-executable stack on SPARC References: <200401252350.i0PNoB1O021806@elgar.kettenis.dyndns.org> <200401261242.i0QCgUoB026534@elgar.kettenis.dyndns.org> <200402011748.i11HmJRR000558@elgar.kettenis.dyndns.org> <9003-Sun01Feb2004220849+0200-eliz@elta.co.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00007.txt.bz2 > Date: Sun, 1 Feb 2004 18:48:19 +0100 (CET) >> From: Mark Kettenis >> >> My line of thought is that it's IMHO fundamentally wrong to push >> target- or architecture-specific details into the application level of >> GDB, which is what infrun.c is. infrun.c should deal with high-level >> logic of handling a stopped inferior, it should not IMHO know about >> intricacies of specific targets. >> >> The question is to what extent this is an intricacy of a specific >> target. > > > I think that the set of signals, apart of SIGTRAP, that can express a > breakpoint on a given target/architecture is something infrun.c > shouldn't know about. Yes. Here, though, we don't have the case of a just-executed breakpoint, rather we have a not-yet-executed segmentation fault. To implement VM based breakpoints and watchpoints GDB will need to be able to differentiate between the two. Hence, I think making this edge case visible in infrun is better. enjoy, Andrew