From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2471 invoked by alias); 7 Mar 2003 16:32:44 -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 2464 invoked from network); 7 Mar 2003 16:32:43 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 7 Mar 2003 16:32:43 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 867532A9C; Fri, 7 Mar 2003 11:32:40 -0500 (EST) Message-ID: <3E68C9A8.8070601@redhat.com> Date: Fri, 07 Mar 2003 16:32:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michal Ludvig Cc: GDB Patches Subject: Re: [RFA] Debug info detection. References: <3E67D471.3040100@suse.cz> <3E68B9FE.6090207@redhat.com> <3E68BF3C.2090503@suse.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00162.txt.bz2 > For now I have... > > const struct frame_unwind * > x86_64_frame_p (CORE_ADDR pc) > { > struct frame_unwind *unwind_cfi = NULL; > struct frame_unwind *unwind_asm = &x86_64_asm_frame_unwind; > struct frame_unwind *unwind_sigtramp = &x86_64_sigtramp_frame_unwind; > char *name; > > find_pc_partial_function (pc, &name, NULL, NULL); > if (gdbarch_pc_in_sigtramp (current_gdbarch, pc, name)) > return unwind_sigtramp; > else if (cfi_have_unwind_info (pc)) > return unwind_cfi; /* Returns NULL here... */ > else > return unwind_asm; > } The function x86-64-tdep.c:x86_64_frame_p() should contain: return x86_64_unwind; The file/function dwarf2cfi-frame.c:dwarf2cfi_frame_p() should contain: if (cfi_have_unwind_info (pc)) return dwarf2cfi_unwind; (Assuming sigtramps are os specific) The file/function x86-64-linux-tdep.c:x86_64_linux_sigtramp_frame_p() should contain: > if (gdbarch_pc_in_sigtramp (current_gdbarch, pc, name)) > return x86_64_linux_sigtramp_unwind; Andrew