From: Tom de Vries Date: Wed, 19 Nov 2025 10:53:35 +0000 (+0100) Subject: [gdb/build] Handle gdbsupport and gdbserver in gdb.pot X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a40fe05bf0;p=thirdparty%2Fbinutils-gdb.git [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 --- 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} \