From owner-svn-src-all@FreeBSD.ORG Wed Sep 12 18:02:36 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63A671065670; Wed, 12 Sep 2012 18:02:36 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 34B7B8FC08; Wed, 12 Sep 2012 18:02:36 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8CI2aHE020561; Wed, 12 Sep 2012 18:02:36 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8CI2Zn7020558; Wed, 12 Sep 2012 18:02:35 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201209121802.q8CI2Zn7020558@svn.freebsd.org> From: Dimitry Andric Date: Wed, 12 Sep 2012 18:02:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r240414 - in stable/7/contrib: binutils/include/elf gdb/gdb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2012 18:02:36 -0000 Author: dim Date: Wed Sep 12 18:02:35 2012 New Revision: 240414 URL: http://svn.freebsd.org/changeset/base/240414 Log: MFC r239870: Teach gdb about the DW_FORM_flag_present dwarf attribute, so it doesn't error out on files that contain it. (This attribute can be emitted by newer versions of clang.) Modified: stable/7/contrib/binutils/include/elf/dwarf2.h stable/7/contrib/gdb/gdb/dwarf2read.c Directory Properties: stable/7/contrib/binutils/ (props changed) stable/7/contrib/gdb/ (props changed) Modified: stable/7/contrib/binutils/include/elf/dwarf2.h ============================================================================== --- stable/7/contrib/binutils/include/elf/dwarf2.h Wed Sep 12 17:57:52 2012 (r240413) +++ stable/7/contrib/binutils/include/elf/dwarf2.h Wed Sep 12 18:02:35 2012 (r240414) @@ -236,7 +236,8 @@ enum dwarf_form DW_FORM_ref4 = 0x13, DW_FORM_ref8 = 0x14, DW_FORM_ref_udata = 0x15, - DW_FORM_indirect = 0x16 + DW_FORM_indirect = 0x16, + DW_FORM_flag_present = 0x19 }; /* Attribute names and codes. */ Modified: stable/7/contrib/gdb/gdb/dwarf2read.c ============================================================================== --- stable/7/contrib/gdb/gdb/dwarf2read.c Wed Sep 12 17:57:52 2012 (r240413) +++ stable/7/contrib/gdb/gdb/dwarf2read.c Wed Sep 12 18:02:35 2012 (r240414) @@ -4604,6 +4604,9 @@ read_attribute_value (struct attribute * DW_UNSND (attr) = read_1_byte (abfd, info_ptr); info_ptr += 1; break; + case DW_FORM_flag_present: + DW_UNSND (attr) = 1; + break; case DW_FORM_sdata: DW_SND (attr) = read_signed_leb128 (abfd, info_ptr, &bytes_read); info_ptr += bytes_read; @@ -7226,6 +7229,9 @@ dump_die (struct die_info *die) else fprintf_unfiltered (gdb_stderr, "flag: FALSE"); break; + case DW_FORM_flag_present: + fprintf_unfiltered (gdb_stderr, "flag: TRUE"); + break; case DW_FORM_indirect: /* the reader will have reduced the indirect form to the "base form" so this form should not occur */