From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13994 invoked by alias); 5 Aug 2004 14:00:39 -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 13986 invoked from network); 5 Aug 2004 14:00:38 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 5 Aug 2004 14:00:38 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i75E0ce3007499 for ; Thu, 5 Aug 2004 10:00:38 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i75E0ca02218; Thu, 5 Aug 2004 10:00:38 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 290DF2B9D; Thu, 5 Aug 2004 10:00:32 -0400 (EDT) Message-ID: <41123D80.7060504@gnu.org> Date: Thu, 05 Aug 2004 14:00:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040801 MIME-Version: 1.0 To: Mark Kettenis Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Fix OpenBSD/i386 signal trampoline recognition References: <200408042107.i74L7YNK029004@copland.kettenis.dyndns.org> In-Reply-To: <200408042107.i74L7YNK029004@copland.kettenis.dyndns.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00111.txt.bz2 > + > + /* If we can't read the instructions at START_PC, return zero. */ > + if (target_read_memory (start_pc + 0x0a, buf, sizeof sigreturn)) > return 0; FYI, you'll want to use: extern void get_frame_memory (struct frame_info *this_frame, CORE_ADDR addr, void *buf, int len); It's both future and memory-breakpoint proof. Andrew