From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8670 invoked by alias); 29 Jul 2004 10:28:37 -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 8661 invoked from network); 29 Jul 2004 10:28:36 -0000 Received: from unknown (HELO cpc4-oxfd5-5-0-cust12.oxfd.cable.ntl.com) (81.105.116.12) by sourceware.org with SMTP; 29 Jul 2004 10:28:36 -0000 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by cpc4-oxfd5-5-0-cust12.oxfd.cable.ntl.com (8.12.11/8.12.11) with ESMTP id i6TAk8x5018782 for ; Thu, 29 Jul 2004 11:46:08 +0100 Subject: Re: [RFA] Dwarf2 Producer info (dwarf2read.c) From: David Lecomber To: patches In-Reply-To: <1090876372.18879.6.camel@cpc4-oxfd5-5-0-cust12.oxfd.cable.ntl.com> References: <1090362598.21483.108.camel@cpc4-oxfd5-5-0-cust12.oxfd.cable.ntl.com> <1090876372.18879.6.camel@cpc4-oxfd5-5-0-cust12.oxfd.cable.ntl.com> Content-Type: multipart/mixed; boundary="=-oFoJtsWitrdDkibiwx93" Message-Id: <1091097968.10751.48.camel@cpc4-oxfd5-5-0-cust12.oxfd.cable.ntl.com> Mime-Version: 1.0 Date: Thu, 29 Jul 2004 10:28:00 -0000 X-SW-Source: 2004-07/txt/msg00438.txt.bz2 --=-oFoJtsWitrdDkibiwx93 Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 396 > Apologies in advance for the wrapping of lines that Evolution will do in > the comment.. Reposting with final suggested changes from Jim B to ChangeLog plus the patch is now an attachment. d. 2004-07-29 David Lecomber * dwarf2read.c (read_file_scope): Set producer if attribute present. (struct dwarf2_cu): Added new member producer. --=-oFoJtsWitrdDkibiwx93 Content-Disposition: inline; filename=dwarf2read.c.patch Content-Type: text/x-patch; name=dwarf2read.c.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 1032 Index: dwarf2read.c =================================================================== RCS file: /cvs/src/src/gdb/dwarf2read.c,v retrieving revision 1.156 diff -c -p -r1.156 dwarf2read.c *** dwarf2read.c 6 Jul 2004 19:29:30 -0000 1.156 --- dwarf2read.c 29 Jul 2004 10:20:20 -0000 *************** struct dwarf2_cu *** 262,267 **** --- 262,269 ---- enum language language; const struct language_defn *language_defn; + const char *producer; + /* The generic symbol table building routines have separate lists for file scope symbols and all all other scopes (local scopes). So we need to select the right one to pass to add_symbol_to_list(). *************** read_file_scope (struct die_info *die, s *** 2362,2367 **** --- 2364,2373 ---- set_cu_language (DW_UNSND (attr), cu); } + attr = dwarf2_attr (die, DW_AT_producer, cu); + if (attr) + cu->producer = DW_STRING (attr); + /* We assume that we're processing GCC output. */ processing_gcc_compilation = 2; #if 0 --=-oFoJtsWitrdDkibiwx93--