From 4a40fe05bf0b7c01c2e2cb1addcaea6fa8fd917a Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 19 Nov 2025 11:53:35 +0100 Subject: [PATCH] [gdb/build] Handle gdbsupport and gdbserver in gdb.pot Currently, when making gdb.pot: ... $ cd build/gdb $ make po/gdb.pot test -d po || mkdir po sh -e /data/vries/gdb/src/gdb/po/gdbtext /usr/bin/xgettext gdb . /data/vries/gdb/src/gdb $ ... only strings from build/gdb and gdb are added. Also add strings from gdbsupport and gdbserver. Update gdb/po/gdbtext to handle the .cc files in gdbsupport and gdbserver. Approved-By: Tom Tromey --- gdb/Makefile.in | 3 ++- gdb/po/gdbtext | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gdb/Makefile.in b/gdb/Makefile.in index c9cd98a75a8..538d10a824d 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2703,7 +2703,8 @@ clean-po: $(PACKAGE).pot: po/$(PACKAGE).pot po/$(PACKAGE).pot: force -test -d po || mkdir po - sh -e $(srcdir)/po/gdbtext $(XGETTEXT) $(PACKAGE) . $(srcdir) + sh -e $(srcdir)/po/gdbtext $(XGETTEXT) $(PACKAGE) . $(srcdir) \ + $(srcdir)/../gdbsupport $(srcdir)/../gdbserver # diff --git a/gdb/po/gdbtext b/gdb/po/gdbtext index 9f30d377233..b35c66560a7 100755 --- a/gdb/po/gdbtext +++ b/gdb/po/gdbtext @@ -22,7 +22,7 @@ do -name '*-stub.c' -prune -o \ -name 'testsuite' -prune -o \ -name 'init.c' -prune -o \ - -name '*.[hc]' -print + -name '*.[hc]' -o -name '*.cc' -print ) done | ${xgettext} \ --default-domain=${package} \ -- 2.47.3