From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10715 invoked by alias); 20 Jul 2004 19:20: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 10693 invoked from network); 20 Jul 2004 19:20:41 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 20 Jul 2004 19:20:41 -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 i6KJKfe1009638 for ; Tue, 20 Jul 2004 15:20:41 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i6KJKfa15337 for ; Tue, 20 Jul 2004 15:20:41 -0400 Received: from [172.16.50.84] (vpn50-84.rdu.redhat.com [172.16.50.84]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i6KJKeM5007643 for ; Tue, 20 Jul 2004 15:20:41 -0400 Subject: [RFA] enable CFI for mips From: "Martin M. Hunt" To: gdb-patches@sources.redhat.com Content-Type: multipart/mixed; boundary="=-D3ScP4Rzruu/Oy+WqgJ+" Organization: Red Hat Inc. Message-Id: <1090351234.3030.17.camel@dragon> Mime-Version: 1.0 Date: Tue, 20 Jul 2004 19:20:00 -0000 X-SW-Source: 2004-07/txt/msg00257.txt.bz2 --=-D3ScP4Rzruu/Oy+WqgJ+ Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 242 2004-07-20 Kevin Buettner and Martin Hunt * mips-tdep.c (dwarf2-frame.h): Include. (mips_gdbarch_init): Enable DWARF2 CFI support. -- Martin M. Hunt Red Hat Inc. --=-D3ScP4Rzruu/Oy+WqgJ+ Content-Disposition: attachment; filename=mips_cfi.patch Content-Type: text/x-patch; name=mips_cfi.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 812 Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.301 diff -u -r1.301 mips-tdep.c --- mips-tdep.c 10 Jul 2004 01:17:52 -0000 1.301 +++ mips-tdep.c 20 Jul 2004 19:18:19 -0000 @@ -54,6 +54,7 @@ #include "frame-base.h" #include "trad-frame.h" #include "infcall.h" +#include "dwarf2-frame.h" static const struct objfile_data *mips_pdr_data; @@ -5734,6 +5735,8 @@ set_gdbarch_addr_bits_remove (gdbarch, mips_addr_bits_remove); /* Unwind the frame. */ + frame_unwind_append_sniffer (gdbarch, dwarf2_frame_sniffer); + frame_base_append_sniffer (gdbarch, dwarf2_frame_base_sniffer); set_gdbarch_unwind_pc (gdbarch, mips_unwind_pc); set_gdbarch_unwind_dummy_id (gdbarch, mips_unwind_dummy_id); --=-D3ScP4Rzruu/Oy+WqgJ+--