From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id 5B31738515FF; Wed, 6 Apr 2022 14:29:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B31738515FF Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: make interp_add static X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: 19c26da69d68d5d863f37c06ad73ab6292d02ffa X-Git-Newrev: 9716aa0a271cf59fb40194440ea6e2a0cf8ab192 Message-Id: <20220406142932.5B31738515FF@sourceware.org> Date: Wed, 6 Apr 2022 14:29:32 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2022 14:29:32 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D9716aa0a271c= f59fb40194440ea6e2a0cf8ab192 commit 9716aa0a271cf59fb40194440ea6e2a0cf8ab192 Author: Andrew Burgess Date: Wed Nov 24 17:18:34 2021 +0000 gdb: make interp_add static =20 Since this commit: =20 commit 8322445e0584be846f5873b9aab257dc9fbda05d Date: Tue Jun 21 01:11:45 2016 +0100 =20 Introduce interpreter factories =20 Interpreters should be registered with GDB, not by calling interp_add, but with a call to interp_factory_register. I've checked the insight source, and it too has moved over to using interp_factory_register. =20 In this commit I make interp_add static within interps.c. =20 There should be no user visible change after this commit. Diff: --- gdb/interps.c | 2 +- gdb/interps.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gdb/interps.c b/gdb/interps.c index b8df3d781e7..44002ff2cb5 100644 --- a/gdb/interps.c +++ b/gdb/interps.c @@ -127,7 +127,7 @@ interp_factory_register (const char *name, interp_facto= ry_func func) =20 /* Add interpreter INTERP to the gdb interpreter list. The interpreter must not have previously been added. */ -void +static void interp_add (struct ui *ui, struct interp *interp) { struct ui_interp_info *ui_interp =3D get_interp_info (ui); diff --git a/gdb/interps.h b/gdb/interps.h index 40f6d3bc89b..330c1ba6615 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -94,8 +94,6 @@ public: bool inited; }; =20 -extern void interp_add (struct ui *ui, struct interp *interp); - /* Look up the interpreter for NAME, creating one if none exists yet. If NAME is not a interpreter type previously registered with interp_factory_register, return NULL; otherwise return a pointer to