Message ID | 20240423132517.2625632-1-simon.marchi@polymtl.ca |
---|---|
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BF4753858435 for <patchwork@sourceware.org>; Tue, 23 Apr 2024 13:26:44 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 8DFAE385840D for <gdb-patches@sourceware.org>; Tue, 23 Apr 2024 13:25:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8DFAE385840D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8DFAE385840D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713878727; cv=none; b=TR6LT/gaBYDQuhZICvndhAV1RPrZdi6SndKQUopo7h45BgRzRLUicn2BTZcXy710aAE7NKq1+0jukJ03t0+GB9ln8bnPnEU1uAl1KBPxRKUJ9TpuN0OpU5GWjq/2VWL+wezFcDX8RtewwiYEOm40odaEW4bBQiB/I7fb+LnOPK8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713878727; c=relaxed/simple; bh=HBjD90h0lTazv0fgymxD4ABvWG1fx9NkdEI6hzj+WOA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=R2Wz/NLRu/D/akrOj3t+f9zdkHYgRwvbLOHlDoO/D1lVMHJCIoBp3tkA9Hj1ideEn7KIBp6Z+0bmydvYyh6Asmh2u2JoM9G5EEWIAxkU5nWIe1reLM/7UmV1pSIuQl2hU8D3fIK+YJZ+T4o2hlmjlIVwjCAXvb4hWan8jAdIsyE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 43NDPJOW056458 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Apr 2024 09:25:24 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 43NDPJOW056458 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1713878724; bh=5J6XNQB3X8jCddIhvxAej1J9HMzPTxT/0AswadKalzI=; h=From:To:Cc:Subject:Date:From; b=F14gWMiz2efcE6sIqRZUcFkGVVdbCODV77U/xvG4azemfnGZcFbkP37otC+Fp4szh a9XRQhqcJ/qVMADKoNFdV0+c6c8bb3giHJmbMHaCuDlDOcfa1fuxq1Hw0YibBb4eTM FyTx0iYM5pVOKDvJBSKKqMA6oLmV/2VOs2uyoJNo= Received: from simark.localdomain (modemcable238.237-201-24.mc.videotron.ca [24.201.237.238]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 09C301E092; Tue, 23 Apr 2024 09:25:19 -0400 (EDT) From: Simon Marchi <simon.marchi@polymtl.ca> To: gdb-patches@sourceware.org Cc: Simon Marchi <simon.marchi@polymtl.ca> Subject: [PATCH 0/7] More cleanup of defs.h Date: Tue, 23 Apr 2024 09:22:55 -0400 Message-ID: <20240423132517.2625632-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Tue, 23 Apr 2024 13:25:19 +0000 X-Spam-Status: No, score=-3182.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org |
Series |
More cleanup of defs.h
|
|
Message
Simon Marchi
April 23, 2024, 1:22 p.m. UTC
Some more cleanup of defs.h. I tested this on the buildbot, but it's very possible that it breaks the build on untested platforms. If this happens, the fix should be one include away. Simon Marchi (7): gdb: move declarations of check_quit_flag and set_quit_flag to extension.h gdb: change return type of check_quit_flag to bool gdb: change type of quit_flag to bool gdb: move a bunch of quit-related things to event-top.{c,h} gdb: move annotation_level declaration/definition to annotate.{h,c} gdb: remove enum precision_type gdb: move symbol_file_command declaration to symfile.h gdb/ada-lang.c | 1 + gdb/ada-typeprint.c | 1 + gdb/ada-valprint.c | 1 + gdb/addrmap.c | 1 + gdb/amd64-windows-tdep.c | 1 + gdb/annotate.c | 4 ++ gdb/annotate.h | 8 ++++ gdb/breakpoint.c | 1 + gdb/c-typeprint.c | 1 + gdb/cli/cli-script.c | 1 + gdb/coffread.c | 1 + gdb/corefile.c | 1 + gdb/cp-valprint.c | 1 + gdb/dbxread.c | 1 + gdb/defs.h | 80 ------------------------------------- gdb/disasm.c | 1 + gdb/dwarf2/cooked-index.c | 1 + gdb/dwarf2/expr.c | 1 + gdb/dwarf2/loc.c | 1 + gdb/dwarf2/read-gdb-index.c | 1 + gdb/dwarf2/read.c | 1 + gdb/event-top.c | 52 +++++++++++++++++++++--- gdb/event-top.h | 52 ++++++++++++++++++++++++ gdb/extension-priv.h | 4 +- gdb/extension.c | 33 ++++++--------- gdb/extension.h | 30 ++++++++++++++ gdb/f-typeprint.c | 1 + gdb/findvar.c | 1 + gdb/frame.c | 1 + gdb/gdb_bfd.c | 1 + gdb/linux-fork.c | 1 + gdb/m2-lang.c | 1 + gdb/m2-typeprint.c | 1 + gdb/main.c | 1 + gdb/mi/mi-cmd-stack.c | 1 + gdb/objc-lang.c | 1 + gdb/p-lang.c | 1 + gdb/p-typeprint.c | 1 + gdb/printcmd.c | 1 + gdb/psymtab.c | 1 + gdb/python/python.c | 6 +-- gdb/remote-fileio.c | 3 +- gdb/remote-sim.c | 1 + gdb/rust-lang.c | 1 + gdb/ser-base.c | 1 + gdb/skip.c | 1 + gdb/solib-rocm.c | 1 + gdb/sparc64-tdep.c | 1 + gdb/stabsread.c | 1 + gdb/stack.c | 9 +---- gdb/symfile.c | 14 +------ gdb/symfile.h | 16 ++++++++ gdb/symmisc.c | 1 + gdb/symtab.c | 1 + gdb/tracepoint.c | 1 + gdb/tui/tui.c | 1 + gdb/utils.c | 41 ------------------- gdb/valops.c | 1 + gdb/valprint.c | 1 + gdb/xcoffread.c | 1 + 60 files changed, 224 insertions(+), 174 deletions(-) base-commit: 6a7d971a8a95d35310388959acfa82bc9d63aba6
Comments
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
Simon> Some more cleanup of defs.h. I tested this on the buildbot, but it's
Simon> very possible that it breaks the build on untested platforms. If this
Simon> happens, the fix should be one include away.
This all looks good to me. Thank you.
Approved-By: Tom Tromey <tom@tromey.com>
Simon> gdb/utils.c | 41 -------------------
Shrinking utils.[ch] is always good as well.
Tom