From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gproxy4-pub.mail.unifiedlayer.com (gproxy4-pub.mail.unifiedlayer.com [69.89.23.142]) by sourceware.org (Postfix) with ESMTPS id 53879386EC4B for ; Fri, 14 Jan 2022 19:57:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 53879386EC4B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com Received: from cmgw14.mail.unifiedlayer.com (unknown [10.0.90.129]) by progateway6.mail.pro1.eigbox.com (Postfix) with ESMTP id 79D021004819F for ; Fri, 14 Jan 2022 19:57:08 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id 8Sh9n9gWD2s5d8ShAnnbjA; Fri, 14 Jan 2022 19:57:08 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=BOh2EHcG c=1 sm=1 tr=0 ts=61e1d594 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=DghFqjY3_ZEA:10:nop_rcvd_month_year a=Qbun_eYptAEA:10:endurance_base64_authed_username_1 a=mDV3o1hIAAAA:8 a=JyDDVFDKL4oQd2CPrmYA:9 a=_FVE-zBwftR9WsbkzFJk:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tRq8+BVk0uvZwBvSM6BiK0lTWwX2i1jLWVVp/RQBEQg=; b=ZgwKevoF/1ab/P3OZ51YM+qMQs 4mFSYClb1E6rba5Al7CinnWfWW0aAbwwt3Deq29il+uqT7kg5gMUtbq4WfmpcMNOY2N0XzVyagd6n kM2/oM476XbgQwNDWXthD7eMt; Received: from 75-166-134-30.hlrn.qwest.net ([75.166.134.30]:40342 helo=prentzel.Home) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n8Sh9-004EUX-Az; Fri, 14 Jan 2022 12:57:07 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 2/4] Move gdb obstack code to gdbsupport Date: Fri, 14 Jan 2022 12:57:03 -0700 Message-Id: <20220114195705.2311967-3-tom@tromey.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220114195705.2311967-1-tom@tromey.com> References: <20220114195705.2311967-1-tom@tromey.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.134.30 X-Source-L: No X-Exim-ID: 1n8Sh9-004EUX-Az X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-134-30.hlrn.qwest.net (prentzel.Home) [75.166.134.30]:40342 X-Source-Auth: tom+tromey.com X-Email-Count: 14 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3031.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Fri, 14 Jan 2022 19:57:13 -0000 This moves the gdb-specific obstack code -- both extensions like obconcat and obstack_strdup, and things like auto_obstack -- to gdbsupport. --- gdb/Makefile.in | 2 -- gdb/ada-lang.c | 2 +- gdb/addrmap.c | 2 +- gdb/bcache.c | 2 +- gdb/block.c | 2 +- gdb/break-catch-throw.c | 2 +- gdb/bsd-uthread.c | 2 +- gdb/buildsym.c | 2 +- gdb/buildsym.h | 2 +- gdb/c-lang.c | 2 +- gdb/c-typeprint.c | 2 +- gdb/charset.c | 2 +- gdb/coffread.c | 2 +- gdb/cp-namespace.c | 2 +- gdb/cp-support.h | 2 +- gdb/cp-valprint.c | 2 +- gdb/d-namespace.c | 2 +- gdb/dbxread.c | 2 +- gdb/dictionary.c | 2 +- gdb/dwarf2/read.h | 2 +- gdb/eval.c | 2 +- gdb/f-typeprint.c | 2 +- gdb/frame-base.c | 2 +- gdb/frame-unwind.c | 2 +- gdb/frame.c | 2 +- gdb/gdbarch.h | 2 +- gdb/gdbtypes.h | 2 +- gdb/gnu-nat.c | 2 +- gdb/go-lang.c | 2 +- gdb/i386-windows-tdep.c | 2 +- gdb/linux-tdep.c | 2 +- gdb/m2-typeprint.c | 2 +- gdb/macroexp.c | 2 +- gdb/macrotab.c | 2 +- gdb/mdebugread.c | 2 +- gdb/mi/mi-cmd-break.c | 2 +- gdb/namespace.h | 2 +- gdb/objfiles.c | 2 +- gdb/objfiles.h | 2 +- gdb/p-typeprint.c | 2 +- gdb/p-valprint.c | 2 +- gdb/psymtab.h | 2 +- gdb/python/py-unwind.c | 2 +- gdb/reggroups.c | 2 +- gdb/rust-parse.c | 2 +- gdb/stabsread.c | 2 +- gdb/symfile.c | 2 +- gdb/symmisc.c | 2 +- gdb/symtab.c | 2 +- gdb/symtab.h | 2 +- gdb/target-descriptions.c | 2 +- gdb/typeprint.c | 2 +- gdb/typeprint.h | 2 +- gdb/ui-file.c | 2 +- gdb/utils.c | 2 +- gdb/valprint.c | 2 +- gdb/windows-nat.c | 2 +- gdb/windows-tdep.c | 2 +- gdb/xml-support.h | 2 +- gdbsupport/Makefile.am | 1 + gdbsupport/Makefile.in | 20 +++++++++++-------- .../gdb_obstack.cc | 2 +- {gdb => gdbsupport}/gdb_obstack.h | 0 63 files changed, 72 insertions(+), 69 deletions(-) rename gdb/gdb_obstack.c => gdbsupport/gdb_obstack.cc (98%) rename {gdb => gdbsupport}/gdb_obstack.h (100%) diff --git a/gdb/Makefile.in b/gdb/Makefile.in index d0db5fbdee1..ce9f1ad441c 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1074,7 +1074,6 @@ COMMON_SFILES = \ gcore.c \ gdb-demangle.c \ gdb_bfd.c \ - gdb_obstack.c \ gdb_regex.c \ gdbtypes.c \ gmp-utils.c \ @@ -1316,7 +1315,6 @@ HFILES_NO_SRCDIR = \ gdb_bfd.h \ gdb_curses.h \ gdb_expat.h \ - gdb_obstack.h \ gdb_proc_service.h \ gdb_regex.h \ gdb_select.h \ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index f2f8617cc1e..b88b27b55b1 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -35,7 +35,7 @@ #include "breakpoint.h" #include "gdbcore.h" #include "hashtab.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "ada-lang.h" #include "completer.h" #include "ui-out.h" diff --git a/gdb/addrmap.c b/gdb/addrmap.c index a35eeed100e..bf30faab66b 100644 --- a/gdb/addrmap.c +++ b/gdb/addrmap.c @@ -19,7 +19,7 @@ #include "defs.h" #include "splay-tree.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "addrmap.h" #include "gdbsupport/selftest.h" diff --git a/gdb/bcache.c b/gdb/bcache.c index c8a5b011598..6d0741b59d0 100644 --- a/gdb/bcache.c +++ b/gdb/bcache.c @@ -20,7 +20,7 @@ along with this program. If not, see . */ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "bcache.h" #include diff --git a/gdb/block.c b/gdb/block.c index b590697a491..2b6196c09aa 100644 --- a/gdb/block.c +++ b/gdb/block.c @@ -21,7 +21,7 @@ #include "block.h" #include "symtab.h" #include "symfile.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "cp-support.h" #include "addrmap.h" #include "gdbtypes.h" diff --git a/gdb/break-catch-throw.c b/gdb/break-catch-throw.c index 15c290b0ad1..5d17854d9af 100644 --- a/gdb/break-catch-throw.c +++ b/gdb/break-catch-throw.c @@ -27,7 +27,7 @@ #include "valprint.h" #include "cli/cli-utils.h" #include "completer.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "mi/mi-common.h" #include "linespec.h" #include "probe.h" diff --git a/gdb/bsd-uthread.c b/gdb/bsd-uthread.c index 5d5978d66ac..d0d9e89e93c 100644 --- a/gdb/bsd-uthread.c +++ b/gdb/bsd-uthread.c @@ -29,7 +29,7 @@ #include "symfile.h" #include "target.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "bsd-uthread.h" diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 8827ddf1a11..1754f5ffe6e 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -19,7 +19,7 @@ #include "defs.h" #include "buildsym-legacy.h" #include "bfd.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "symtab.h" #include "symfile.h" #include "objfiles.h" diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 4ca8e0528f4..003d8a59719 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -19,7 +19,7 @@ #if !defined (BUILDSYM_H) #define BUILDSYM_H 1 -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" struct objfile; struct symbol; diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 4c9f8a741df..ed7554fadea 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -32,7 +32,7 @@ #include "demangle.h" #include "cp-abi.h" #include "cp-support.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include #include "gdbcore.h" #include "gdbarch.h" diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 71d8797e84c..81fc82ec263 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -17,7 +17,7 @@ along with this program. If not, see . */ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "bfd.h" /* Binary File Description. */ #include "symtab.h" #include "gdbtypes.h" diff --git a/gdb/charset.c b/gdb/charset.c index 0b3ef26f1d6..9b1de08a93a 100644 --- a/gdb/charset.c +++ b/gdb/charset.c @@ -20,7 +20,7 @@ #include "defs.h" #include "charset.h" #include "gdbcmd.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/gdb_wait.h" #include "charset-list.h" #include "gdbsupport/environ.h" diff --git a/gdb/coffread.c b/gdb/coffread.c index e264918fb3a..921cfce1053 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -24,7 +24,7 @@ #include "breakpoint.h" #include "bfd.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include #include "coff/internal.h" /* Internal format of COFF symbols in BFD */ diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index e6176719677..6130381fdd6 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -20,7 +20,7 @@ #include "defs.h" #include "cp-support.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "symtab.h" #include "symfile.h" #include "block.h" diff --git a/gdb/cp-support.h b/gdb/cp-support.h index 832155bff42..cd473a2c553 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -26,7 +26,7 @@ #include "symtab.h" #include "gdbsupport/gdb_vecs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/array-view.h" #include diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 98ac636a21c..1d98eb58214 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -18,7 +18,7 @@ along with this program. If not, see . */ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "symtab.h" #include "gdbtypes.h" #include "expression.h" diff --git a/gdb/d-namespace.c b/gdb/d-namespace.c index 39097e8055c..eab99cec672 100644 --- a/gdb/d-namespace.c +++ b/gdb/d-namespace.c @@ -23,7 +23,7 @@ #include "language.h" #include "namespace.h" #include "d-lang.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdbarch.h" /* This returns the length of first component of NAME, which should be diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 849ae0133f7..911d518b7e9 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -32,7 +32,7 @@ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include #include "symtab.h" #include "breakpoint.h" diff --git a/gdb/dictionary.c b/gdb/dictionary.c index 7a686281475..849d07469cf 100644 --- a/gdb/dictionary.c +++ b/gdb/dictionary.c @@ -22,7 +22,7 @@ #include "defs.h" #include -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "symtab.h" #include "buildsym.h" #include "dictionary.h" diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h index 0071c385bfa..effeaabc4af 100644 --- a/gdb/dwarf2/read.h +++ b/gdb/dwarf2/read.h @@ -27,7 +27,7 @@ #include "dwarf2/index-cache.h" #include "dwarf2/section.h" #include "filename-seen-cache.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/hash_enum.h" #include "gdbsupport/function-view.h" #include "psympriv.h" diff --git a/gdb/eval.c b/gdb/eval.c index acac28e5c2d..713f977bc77 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -36,7 +36,7 @@ #include "regcache.h" #include "user-regs.h" #include "valprint.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "objfiles.h" #include "typeprint.h" #include diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c index a633e47b2d3..0a338c11cbc 100644 --- a/gdb/f-typeprint.c +++ b/gdb/f-typeprint.c @@ -21,7 +21,7 @@ along with this program. If not, see . */ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "bfd.h" #include "symtab.h" #include "gdbtypes.h" diff --git a/gdb/frame-base.c b/gdb/frame-base.c index 7f018122d37..91af24b4f74 100644 --- a/gdb/frame-base.c +++ b/gdb/frame-base.c @@ -20,7 +20,7 @@ #include "defs.h" #include "frame-base.h" #include "frame.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdbarch.h" /* A default frame base implementations. If it wasn't for the old diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c index fdfe44cb10a..302ce1efb99 100644 --- a/gdb/frame-unwind.c +++ b/gdb/frame-unwind.c @@ -24,7 +24,7 @@ #include "inline-frame.h" #include "value.h" #include "regcache.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "target.h" #include "gdbarch.h" #include "dwarf2/frame-tailcall.h" diff --git a/gdb/frame.c b/gdb/frame.c index cee6b08a49a..6e2f6b245a2 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -24,7 +24,7 @@ #include "inferior.h" /* for inferior_ptid */ #include "regcache.h" #include "user-regs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "dummy-frame.h" #include "sentinel-frame.h" #include "gdbcore.h" diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index fc1582449ed..6404dc1cb43 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -24,7 +24,7 @@ #include #include "frame.h" #include "dis-asm.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "infrun.h" #include "osabi.h" #include "displaced-stepping.h" diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 42878dba933..467f60975e1 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -52,7 +52,7 @@ #include "gdbsupport/underlying.h" #include "gdbsupport/print-utils.h" #include "dwarf2.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gmp-utils.h" /* Forward declarations for prototypes. */ diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 9c53e3c0c2f..ea3b8eee293 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -69,7 +69,7 @@ extern "C" #include "gdbcmd.h" #include "gdbcore.h" #include "gdbthread.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "tid-parse.h" #include "nat/fork-inferior.h" diff --git a/gdb/go-lang.c b/gdb/go-lang.c index d0c6188cb0b..74b8b214abb 100644 --- a/gdb/go-lang.c +++ b/gdb/go-lang.c @@ -32,7 +32,7 @@ */ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "block.h" #include "symtab.h" #include "language.h" diff --git a/gdb/i386-windows-tdep.c b/gdb/i386-windows-tdep.c index d50d6edb385..8e1cc17b91c 100644 --- a/gdb/i386-windows-tdep.c +++ b/gdb/i386-windows-tdep.c @@ -23,7 +23,7 @@ #include "i386-tdep.h" #include "windows-tdep.h" #include "regset.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "xml-support.h" #include "gdbcore.h" #include "inferior.h" diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index b0056358cf9..4b69121e4d0 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -31,7 +31,7 @@ #include "inferior.h" #include "cli/cli-utils.h" #include "arch-utils.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "observable.h" #include "objfiles.h" #include "infcall.h" diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c index 9fd86f5f0d2..f929ab4df3c 100644 --- a/gdb/m2-typeprint.c +++ b/gdb/m2-typeprint.c @@ -17,7 +17,7 @@ along with this program. If not, see . */ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "bfd.h" /* Binary File Description */ #include "symtab.h" #include "gdbtypes.h" diff --git a/gdb/macroexp.c b/gdb/macroexp.c index 97adb6e31a2..be5723fe600 100644 --- a/gdb/macroexp.c +++ b/gdb/macroexp.c @@ -18,7 +18,7 @@ along with this program. If not, see . */ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "macrotab.h" #include "macroexp.h" #include "macroscope.h" diff --git a/gdb/macrotab.c b/gdb/macrotab.c index 479d08f13c6..92d68e78e71 100644 --- a/gdb/macrotab.c +++ b/gdb/macrotab.c @@ -18,7 +18,7 @@ along with this program. If not, see . */ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "splay-tree.h" #include "filenames.h" #include "symtab.h" diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index b8c8ccb5e97..1b327ad6115 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -45,7 +45,7 @@ #include "gdbcore.h" #include "filenames.h" #include "objfiles.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "buildsym-legacy.h" #include "stabsread.h" #include "complaints.h" diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c index 7be4c3cb3b8..05eac3553ae 100644 --- a/gdb/mi/mi-cmd-break.c +++ b/gdb/mi/mi-cmd-break.c @@ -30,7 +30,7 @@ #include "language.h" #include "location.h" #include "linespec.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include #include "tracepoint.h" diff --git a/gdb/namespace.h b/gdb/namespace.h index e3bac97727e..dc052a44e42 100644 --- a/gdb/namespace.h +++ b/gdb/namespace.h @@ -20,7 +20,7 @@ #define NAMESPACE_H #include "gdbsupport/gdb_vecs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" /* This struct is designed to store data from using directives. It says that names from namespace IMPORT_SRC should be visible within diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 262009eeda3..219dd0175cb 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -36,7 +36,7 @@ #include #include #include -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "hashtab.h" #include "breakpoint.h" diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 27737dc99ca..8bd76705688 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -21,7 +21,7 @@ #define OBJFILES_H #include "hashtab.h" -#include "gdb_obstack.h" /* For obstack internals. */ +#include "gdbsupport/gdb_obstack.h" /* For obstack internals. */ #include "objfile-flags.h" #include "symfile.h" #include "progspace.h" diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c index 468f0fdece1..3450836996d 100644 --- a/gdb/p-typeprint.c +++ b/gdb/p-typeprint.c @@ -19,7 +19,7 @@ /* This file is derived from p-typeprint.c */ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "bfd.h" /* Binary File Description */ #include "symtab.h" #include "gdbtypes.h" diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c index d4a3971103c..e0c3868991b 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -20,7 +20,7 @@ /* This file is derived from c-valprint.c */ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "symtab.h" #include "gdbtypes.h" #include "expression.h" diff --git a/gdb/psymtab.h b/gdb/psymtab.h index 7ad9a534af1..70eb3e246ba 100644 --- a/gdb/psymtab.h +++ b/gdb/psymtab.h @@ -20,7 +20,7 @@ #ifndef PSYMTAB_H #define PSYMTAB_H -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "symfile.h" #include "gdbsupport/next-iterator.h" #include "bcache.h" diff --git a/gdb/python/py-unwind.c b/gdb/python/py-unwind.c index a884c83ec26..4fea9068aad 100644 --- a/gdb/python/py-unwind.c +++ b/gdb/python/py-unwind.c @@ -20,7 +20,7 @@ #include "defs.h" #include "arch-utils.h" #include "frame-unwind.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdbcmd.h" #include "language.h" #include "observable.h" diff --git a/gdb/reggroups.c b/gdb/reggroups.c index 2b612fbd040..1ad2a9c40f8 100644 --- a/gdb/reggroups.c +++ b/gdb/reggroups.c @@ -26,7 +26,7 @@ #include "regcache.h" #include "command.h" #include "gdbcmd.h" /* For maintenanceprintlist. */ -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" /* Individual register groups. */ diff --git a/gdb/rust-parse.c b/gdb/rust-parse.c index 6628a86f575..a3969fe4fa9 100644 --- a/gdb/rust-parse.c +++ b/gdb/rust-parse.c @@ -22,7 +22,7 @@ #include "block.h" #include "charset.h" #include "cp-support.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdb_regex.h" #include "rust-lang.h" #include "parser-defs.h" diff --git a/gdb/stabsread.c b/gdb/stabsread.c index f6b211ec29e..20cba381cc5 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -26,7 +26,7 @@ #include "defs.h" #include "bfd.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "symtab.h" #include "gdbtypes.h" #include "expression.h" diff --git a/gdb/symfile.c b/gdb/symfile.c index 37ce01bb0e6..a60892b08db 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -40,7 +40,7 @@ #include "regcache.h" #include "filenames.h" /* for DOSish file names */ #include "gdb-stabs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "completer.h" #include "bcache.h" #include "hashtab.h" diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 4cbe338cb84..3b5c3a07fc7 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -26,7 +26,7 @@ #include "objfiles.h" #include "breakpoint.h" #include "command.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "language.h" #include "bcache.h" #include "block.h" diff --git a/gdb/symtab.c b/gdb/symtab.c index ba8e34df651..cf9f6cec34f 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -47,7 +47,7 @@ #include "hashtab.h" #include "typeprint.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "block.h" #include "dictionary.h" diff --git a/gdb/symtab.h b/gdb/symtab.h index a17ee02163a..740c7ed8c74 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -26,7 +26,7 @@ #include #include "gdbsupport/gdb_vecs.h" #include "gdbtypes.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdb_regex.h" #include "gdbsupport/enum-flags.h" #include "gdbsupport/function-view.h" diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index 282729df9e6..7c380cdb60f 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -30,7 +30,7 @@ #include "xml-tdesc.h" #include "osabi.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "hashtab.h" #include "inferior.h" #include diff --git a/gdb/typeprint.c b/gdb/typeprint.c index 2428aa2244f..0430df82012 100644 --- a/gdb/typeprint.c +++ b/gdb/typeprint.c @@ -18,7 +18,7 @@ along with this program. If not, see . */ #include "defs.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "bfd.h" /* Binary File Description */ #include "symtab.h" #include "gdbtypes.h" diff --git a/gdb/typeprint.h b/gdb/typeprint.h index 97620a4caf2..29687234c7f 100644 --- a/gdb/typeprint.h +++ b/gdb/typeprint.h @@ -19,7 +19,7 @@ #ifndef TYPEPRINT_H #define TYPEPRINT_H -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" enum language; struct ui_file; diff --git a/gdb/ui-file.c b/gdb/ui-file.c index c6a4888ed48..d30ec04a68f 100644 --- a/gdb/ui-file.c +++ b/gdb/ui-file.c @@ -21,7 +21,7 @@ #include "defs.h" #include "ui-file.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/gdb_select.h" #include "gdbsupport/filestuff.h" #include "cli/cli-style.h" diff --git a/gdb/utils.c b/gdb/utils.c index da60c1e4144..0be49a6d4f8 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -48,7 +48,7 @@ #include "annotate.h" #include "filenames.h" #include "symfile.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdbcore.h" #include "top.h" #include "main.h" diff --git a/gdb/valprint.c b/gdb/valprint.c index 0bc739cf2e2..f80c1698ad6 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -30,7 +30,7 @@ #include "target-float.h" #include "extension.h" #include "ada-lang.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "charset.h" #include "typeprint.h" #include diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index bdf6ac93c49..81e26fe4759 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -48,7 +48,7 @@ #include "symfile.h" #include "objfiles.h" #include "gdb_bfd.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdbthread.h" #include "gdbcmd.h" #include diff --git a/gdb/windows-tdep.c b/gdb/windows-tdep.c index 78984d65fd6..13be3e4e461 100644 --- a/gdb/windows-tdep.c +++ b/gdb/windows-tdep.c @@ -17,7 +17,7 @@ #include "defs.h" #include "windows-tdep.h" -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "xml-support.h" #include "gdbarch.h" #include "target.h" diff --git a/gdb/xml-support.h b/gdb/xml-support.h index 1be77f8eaae..13edeaec910 100644 --- a/gdb/xml-support.h +++ b/gdb/xml-support.h @@ -21,7 +21,7 @@ #ifndef XML_SUPPORT_H #define XML_SUPPORT_H -#include "gdb_obstack.h" +#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/xml-utils.h" #include "gdbsupport/byte-vector.h" #include "gdbsupport/gdb_optional.h" diff --git a/gdbsupport/Makefile.am b/gdbsupport/Makefile.am index d8f204b824a..73d4149f294 100644 --- a/gdbsupport/Makefile.am +++ b/gdbsupport/Makefile.am @@ -52,6 +52,7 @@ libgdbsupport_a_SOURCES = \ filestuff.cc \ format.cc \ gdb-dlfcn.cc \ + gdb_obstack.cc \ gdb_tilde_expand.cc \ gdb_wait.cc \ gdb_vecs.cc \ diff --git a/gdbsupport/Makefile.in b/gdbsupport/Makefile.in index c74e26aacd3..88d3dd153d6 100644 --- a/gdbsupport/Makefile.in +++ b/gdbsupport/Makefile.in @@ -151,14 +151,15 @@ am_libgdbsupport_a_OBJECTS = agent.$(OBJEXT) btrace-common.$(OBJEXT) \ common-regcache.$(OBJEXT) common-utils.$(OBJEXT) \ environ.$(OBJEXT) errors.$(OBJEXT) event-loop.$(OBJEXT) \ fileio.$(OBJEXT) filestuff.$(OBJEXT) format.$(OBJEXT) \ - gdb-dlfcn.$(OBJEXT) gdb_tilde_expand.$(OBJEXT) \ - gdb_wait.$(OBJEXT) gdb_vecs.$(OBJEXT) job-control.$(OBJEXT) \ - netstuff.$(OBJEXT) new-op.$(OBJEXT) pathstuff.$(OBJEXT) \ - print-utils.$(OBJEXT) ptid.$(OBJEXT) rsp-low.$(OBJEXT) \ - run-time-clock.$(OBJEXT) safe-strerror.$(OBJEXT) \ - scoped_mmap.$(OBJEXT) search.$(OBJEXT) signals.$(OBJEXT) \ - signals-state-save-restore.$(OBJEXT) tdesc.$(OBJEXT) \ - thread-pool.$(OBJEXT) xml-utils.$(OBJEXT) $(am__objects_1) + gdb-dlfcn.$(OBJEXT) gdb_obstack.$(OBJEXT) \ + gdb_tilde_expand.$(OBJEXT) gdb_wait.$(OBJEXT) \ + gdb_vecs.$(OBJEXT) job-control.$(OBJEXT) netstuff.$(OBJEXT) \ + new-op.$(OBJEXT) pathstuff.$(OBJEXT) print-utils.$(OBJEXT) \ + ptid.$(OBJEXT) rsp-low.$(OBJEXT) run-time-clock.$(OBJEXT) \ + safe-strerror.$(OBJEXT) scoped_mmap.$(OBJEXT) search.$(OBJEXT) \ + signals.$(OBJEXT) signals-state-save-restore.$(OBJEXT) \ + tdesc.$(OBJEXT) thread-pool.$(OBJEXT) xml-utils.$(OBJEXT) \ + $(am__objects_1) libgdbsupport_a_OBJECTS = $(am_libgdbsupport_a_OBJECTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) @@ -336,6 +337,7 @@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -375,6 +377,7 @@ libgdbsupport_a_SOURCES = \ filestuff.cc \ format.cc \ gdb-dlfcn.cc \ + gdb_obstack.cc \ gdb_tilde_expand.cc \ gdb_wait.cc \ gdb_vecs.cc \ @@ -480,6 +483,7 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filestuff.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb-dlfcn.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb_obstack.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb_tilde_expand.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb_vecs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdb_wait.Po@am__quote@ diff --git a/gdb/gdb_obstack.c b/gdbsupport/gdb_obstack.cc similarity index 98% rename from gdb/gdb_obstack.c rename to gdbsupport/gdb_obstack.cc index 3f8d82a245e..571f34a7add 100644 --- a/gdb/gdb_obstack.c +++ b/gdbsupport/gdb_obstack.cc @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "defs.h" +#include "common-defs.h" #include "gdb_obstack.h" /* Concatenate NULL terminated variable argument list of `const char *' diff --git a/gdb/gdb_obstack.h b/gdbsupport/gdb_obstack.h similarity index 100% rename from gdb/gdb_obstack.h rename to gdbsupport/gdb_obstack.h -- 2.31.1