[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 <tom@tromey.com>
This commit is contained in:
Tom de Vries 2025-11-19 11:53:35 +01:00
parent d07e866442
commit 4a40fe05bf
2 changed files with 3 additions and 2 deletions

View file

@ -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
#

View file

@ -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} \