From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 150DC39C0C25 for ; Mon, 28 Jun 2021 17:44:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 150DC39C0C25 X-ASG-Debug-ID: 1624902270-0c856e6cd51a31560001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id VVtSCj7wRPRBWPCn (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Jun 2021 13:44:31 -0400 (EDT) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.localdomain (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) by smtp.ebox.ca (Postfix) with ESMTP id CFF30441DAE; Mon, 28 Jun 2021 13:44:30 -0400 (EDT) From: Simon Marchi X-Barracuda-RBL-IP: 192.222.157.6 X-Barracuda-Effective-Source-IP: 192-222-157-6.qc.cable.ebox.net[192.222.157.6] X-Barracuda-Apparent-Source-IP: 192.222.157.6 To: gdb-patches@sourceware.org Subject: [PATCH 1/5] gdb: make frame_debug a boolean Date: Mon, 28 Jun 2021 13:44:25 -0400 X-ASG-Orig-Subj: [PATCH 1/5] gdb: make frame_debug a boolean Message-Id: <20210628174429.275911-2-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210628174429.275911-1-simon.marchi@polymtl.ca> References: <20210628174429.275911-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1624902271 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 1834 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.90967 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-17.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_QUARANTINE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Mon, 28 Jun 2021 17:44:33 -0000 gdb/ChangeLog: * frame.h (frame_debug): Change type to bool. * frame.c (frame_debug): Change type to bool. (_initialize_frame): Adjust. Change-Id: I27b5359a25ad53ac42618b5708a025c348a1eeda --- gdb/frame.c | 11 ++++++----- gdb/frame.h | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gdb/frame.c b/gdb/frame.c index d2e14c831a09..f85de2eaae29 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -330,7 +330,8 @@ scoped_restore_selected_frame::~scoped_restore_selected_frame () /* Flag to control debugging. */ -unsigned int frame_debug; +bool frame_debug; + static void show_frame_debug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) @@ -3195,11 +3196,11 @@ Literal \"unlimited\" or zero means no limit."), set_backtrace_option_defs, &set_backtrace_cmdlist, &show_backtrace_cmdlist); /* Debug this files internals. */ - add_setshow_zuinteger_cmd ("frame", class_maintenance, &frame_debug, _("\ + add_setshow_boolean_cmd ("frame", class_maintenance, &frame_debug, _("\ Set frame debugging."), _("\ Show frame debugging."), _("\ When non-zero, frame specific internal debugging is enabled."), - NULL, - show_frame_debug, - &setdebuglist, &showdebuglist); + NULL, + show_frame_debug, + &setdebuglist, &showdebuglist); } diff --git a/gdb/frame.h b/gdb/frame.h index da52522ad2aa..33ca5ab6f1f2 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -214,7 +214,7 @@ extern const struct frame_id outer_frame_id; /* Flag to control debugging. */ -extern unsigned int frame_debug; +extern bool frame_debug; /* Construct a frame ID. The first parameter is the frame's constant stack address (typically the outer-bound), and the second the -- 2.32.0