From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27230 invoked by alias); 31 Oct 2019 09:43:39 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 27216 invoked by uid 89); 31 Oct 2019 09:43:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 spammy=baris, tankutbarisaktemurintelcom, tankut, sk:tankut X-HELO: mx1.osci.io Received: from polly.osci.io (HELO mx1.osci.io) (8.43.85.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 31 Oct 2019 09:43:37 +0000 Received: by mx1.osci.io (Postfix, from userid 994) id 6BFEF204A6; Thu, 31 Oct 2019 05:43:35 -0400 (EDT) Received: from gnutoolchain-gerrit.osci.io (gnutoolchain-gerrit.osci.io [IPv6:2620:52:3:1:5054:ff:fe06:16ca]) by mx1.osci.io (Postfix) with ESMTP id 55E772031F; Thu, 31 Oct 2019 05:43:32 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by gnutoolchain-gerrit.osci.io (Postfix) with ESMTP id 1BD8520AF6; Thu, 31 Oct 2019 05:43:32 -0400 (EDT) X-Gerrit-PatchSet: 1 Date: Thu, 31 Oct 2019 09:43:00 -0000 From: "Tankut Baris Aktemur (Code Review)" To: gdb-patches@sourceware.org Cc: Simon Marchi , Tom Tromey , Andrew Burgess Auto-Submitted: auto-generated X-Gerrit-MessageType: comment Subject: [review] gdb: recognize new DWARF attributes: defaulted, deleted, calling conv. X-Gerrit-Change-Id: I54192f363115b78ec7435a8563b73fcace420765 X-Gerrit-Change-Number: 135 X-Gerrit-ChangeURL: X-Gerrit-Commit: be2a724c69fd89d32b0829d500820f9c7f448c84 In-Reply-To: References: X-Gerrit-Comment-Date: Thu, 31 Oct 2019 05:43:31 -0400 Reply-To: gnutoolchain-gerrit@osci.io MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/3.0.3-75-g9005159e5d Content-Type: text/plain; charset=UTF-8 Message-Id: <20191031094332.1BD8520AF6@gnutoolchain-gerrit.osci.io> X-SW-Source: 2019-10/txt/msg01157.txt.bz2 Tankut Baris Aktemur has posted comments on this change. Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/135 ...................................................................... Patch Set 1: (2 comments) https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/135/1/gdb/gdbtypes.h File gdb/gdbtypes.h: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/135/1/gdb/gdbtypes.h@1101 PS1, Line 1101: 986 | struct cplus_struct_type | ... 1096 | 1097 | /* * The calling convention for this type, fetched from the 1098 | DW_AT_calling_convention attribute. The value is one of the 1099 | DW_CC enum dwarf_calling_convention constants. */ 1100 | 1101 > unsigned calling_convention : 8; 1102 | }; 1103 | 1104 | /* * Struct used to store conversion rankings. */ 1105 | 1106 | struct rank > That makes sense, this is not API so we can change it however we want. […] I assume this comment applies to the "defaulted" attribute, too. Before I send a revision, just to clarify: I don't see another use of "enum dwarf_*" in gdbtypes.h. In the original patch, my aim was to be consistent with the existing definition; in particular with the 'calling_convention' field in 'func_type' a little bit down (marked with another comment). So, my question is, would this change create inconsistency in this file? https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/135/1/gdb/gdbtypes.h@1144 PS1, Line 1144: 1137 | struct func_type | ... 1139 | /* * The calling convention for targets supporting multiple ABIs. 1140 | Right now this is only fetched from the Dwarf-2 1141 | DW_AT_calling_convention attribute. The value is one of the 1142 | DW_CC enum dwarf_calling_convention constants. */ 1143 | 1144 > unsigned calling_convention : 8; 1145 | 1146 | /* * Whether this function normally returns to its caller. It is 1147 | set from the DW_AT_noreturn attribute if set on the 1148 | DW_TAG_subprogram. */ 1149 | This is an existing definition I had aimed to be consistent with. -- Gerrit-Project: binutils-gdb Gerrit-Branch: master Gerrit-Change-Id: I54192f363115b78ec7435a8563b73fcace420765 Gerrit-Change-Number: 135 Gerrit-PatchSet: 1 Gerrit-Owner: Tankut Baris Aktemur Gerrit-Reviewer: Andrew Burgess Gerrit-Reviewer: Tankut Baris Aktemur Gerrit-CC: Simon Marchi Gerrit-CC: Tom Tromey Gerrit-Comment-Date: Thu, 31 Oct 2019 09:43:31 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: Tom Tromey Comment-In-Reply-To: Simon Marchi Gerrit-MessageType: comment