From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 0BEVGChKg2CbCAAAWB0awg (envelope-from ) for ; Fri, 23 Apr 2021 18:28:56 -0400 Received: by simark.ca (Postfix, from userid 112) id 609361F104; Fri, 23 Apr 2021 18:28:56 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 316DC1E939 for ; Fri, 23 Apr 2021 18:28:55 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7F0AB3B33C21; Fri, 23 Apr 2021 22:28:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F0AB3B33C21 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1619216934; bh=VxrLOF5Kh9QEVPRf4W8WfaLHF1MTisDAgrgSUniKIEc=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=wYmaqDmE8JZszUW8Qq++ycapsDsl9ljNHCBR+rR6zn3T0gln8apTMI7INfdgfHY0V 0wLV3x3MmAYZAcLKZUrv1zSqhDyS8yW1KtKIMH70oy5sBvpDzCFHsJMoBoIjecAaSp ju9mIs1eosSCqtdmgBqqgJxNwlCzjw9qeMLcFuXE= Received: from lndn.lancelotsix.com (vps-42846194.vps.ovh.net [IPv6:2001:41d0:801:2000::2400]) by sourceware.org (Postfix) with ESMTPS id 4C30A393BC3F for ; Fri, 23 Apr 2021 22:28:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4C30A393BC3F Received: from Plymouth.lan (unknown [IPv6:2a02:390:9086:0:5814:88b8:54d5:bdf9]) by lndn.lancelotsix.com (Postfix) with ESMTPSA id C3FF38285A; Fri, 23 Apr 2021 22:28:48 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH v3 1/2] typeprint.h: reorder struct declaration Date: Fri, 23 Apr 2021 23:28:37 +0100 Message-Id: <20210423222838.41119-2-lsix@lancelotsix.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210423222838.41119-1-lsix@lancelotsix.com> References: <20210423222838.41119-1-lsix@lancelotsix.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.11 (lndn.lancelotsix.com [0.0.0.0]); Fri, 23 Apr 2021 22:28:49 +0000 (UTC) X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Lancelot SIX via Gdb-patches Reply-To: Lancelot SIX Cc: Lancelot SIX Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Move the declaration of struct type_print_raw_options before struct print_offset_data to ease upcoming changes. This is a helper commit intended to make it easier to build a print_offset_data object from configurations given by a type_print_raw_options. Changes from V1: - Fix gdb/Changelog entry. gdb/ChangeLog: * typeprint.h (struct type_print_options): Move before print_offset_data. --- gdb/typeprint.h | 60 ++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/gdb/typeprint.h b/gdb/typeprint.h index 982034e12c5..75204f6a5d5 100644 --- a/gdb/typeprint.h +++ b/gdb/typeprint.h @@ -26,6 +26,36 @@ struct ui_file; struct typedef_hash_table; struct ext_lang_type_printers; +struct type_print_options +{ + /* True means that no special printing flags should apply. */ + unsigned int raw : 1; + + /* True means print methods in a class. */ + unsigned int print_methods : 1; + + /* True means print typedefs in a class. */ + unsigned int print_typedefs : 1; + + /* True means to print offsets, a la 'pahole'. */ + unsigned int print_offsets : 1; + + /* The number of nested type definitions to print. -1 == all. */ + int print_nested_type_limit; + + /* If not NULL, a local typedef hash table used when printing a + type. */ + typedef_hash_table *local_typedefs; + + /* If not NULL, a global typedef hash table used when printing a + type. */ + typedef_hash_table *global_typedefs; + + /* The list of type printers associated with the global typedef + table. This is intentionally opaque. */ + struct ext_lang_type_printers *global_printers; +}; + struct print_offset_data { /* The offset to be applied to bitpos when PRINT_OFFSETS is true. @@ -73,36 +103,6 @@ struct print_offset_data const char *for_what); }; -struct type_print_options -{ - /* True means that no special printing flags should apply. */ - unsigned int raw : 1; - - /* True means print methods in a class. */ - unsigned int print_methods : 1; - - /* True means print typedefs in a class. */ - unsigned int print_typedefs : 1; - - /* True means to print offsets, a la 'pahole'. */ - unsigned int print_offsets : 1; - - /* The number of nested type definitions to print. -1 == all. */ - int print_nested_type_limit; - - /* If not NULL, a local typedef hash table used when printing a - type. */ - typedef_hash_table *local_typedefs; - - /* If not NULL, a global typedef hash table used when printing a - type. */ - typedef_hash_table *global_typedefs; - - /* The list of type printers associated with the global typedef - table. This is intentionally opaque. */ - struct ext_lang_type_printers *global_printers; -}; - extern const struct type_print_options type_print_raw_options; /* A hash table holding typedef_field objects. This is more -- 2.31.1