From patchwork Tue Mar 24 18:28:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Brobecker X-Patchwork-Id: 5789 Received: (qmail 31554 invoked by alias); 24 Mar 2015 18:28:31 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 30737 invoked by uid 89); 24 Mar 2015 18:28:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 24 Mar 2015 18:28:29 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 0F697D37D6 for ; Tue, 24 Mar 2015 14:28:26 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PF8O3Ng54nL5 for ; Tue, 24 Mar 2015 14:28:26 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id CAE39D37CF for ; Tue, 24 Mar 2015 14:28:25 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 3F3CC40EAD; Tue, 24 Mar 2015 11:28:24 -0700 (PDT) From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [FYI 1/2] GDB: rename DYN_ATTR_DATA_LOCATION into DYN_PROP_DATA_LOCATION. Date: Tue, 24 Mar 2015 11:28:22 -0700 Message-Id: <1427221703-17826-1-git-send-email-brobecker@adacore.com> The terminology we've been using is (dynamic) "property" rather than "attribute", so this patch renames an enum to use the same terminology. No behavior change. gdb/ChangeLog: * gdbtypes.h (enum dynamic_prop_node_kind) : Renames DYN_ATTR_DATA_LOCATION. (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of DYN_ATTR_DATA_LOCATION. * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION instead of DYN_ATTR_DATA_LOCATION. Tested on x86_64-linux and pushed. Thanks, diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c2a5520..78ccc8a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2015-03-24 Joel Brobecker + + * gdbtypes.h (enum dynamic_prop_node_kind) : + Renames DYN_ATTR_DATA_LOCATION. + (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of + DYN_ATTR_DATA_LOCATION. + * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION + instead of DYN_ATTR_DATA_LOCATION. + 2015-03-24 Pedro Alves * breakpoint.c (until_break_command): Adjust call to proceed. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 4946b48..96c5a33 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -22102,7 +22102,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) /* Read DW_AT_data_location and set in type. */ attr = dwarf2_attr (die, DW_AT_data_location, cu); if (attr_to_dynamic_prop (attr, die, cu, &prop)) - add_dyn_prop (DYN_ATTR_DATA_LOCATION, prop, type, objfile); + add_dyn_prop (DYN_PROP_DATA_LOCATION, prop, type, objfile); if (dwarf2_per_objfile->die_type_hash == NULL) { diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 79d72df..15d6cd5 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -439,7 +439,7 @@ enum dynamic_prop_node_kind { /* A property providing a type's data location. Evaluating this field yields to the location of an object's data. */ - DYN_ATTR_DATA_LOCATION, + DYN_PROP_DATA_LOCATION, }; /* * List for dynamic type attributes. */ @@ -1258,7 +1258,7 @@ extern void allocate_gnat_aux_type (struct type *); /* Property accessors for the type data location. */ #define TYPE_DATA_LOCATION(thistype) \ - get_dyn_prop (DYN_ATTR_DATA_LOCATION, thistype) + get_dyn_prop (DYN_PROP_DATA_LOCATION, thistype) #define TYPE_DATA_LOCATION_BATON(thistype) \ TYPE_DATA_LOCATION (thistype)->data.baton #define TYPE_DATA_LOCATION_ADDR(thistype) \