From: Tom de Vries Date: Mon, 8 Dec 2025 08:30:25 +0000 (+0100) Subject: [gdb/build] Re-add *.[ch] in gdb.pot X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba052e67626a834249e797376bb50e7c77e3defc;p=thirdparty%2Fbinutils-gdb.git [gdb/build] Re-add *.[ch] in gdb.pot In commit 4a40fe05bf0 ("[gdb/build] Handle gdbsupport and gdbserver in gdb.pot"), in order to handle '*.cc' files I did: ... - -name '*.[hc]' -print + -name '*.[hc]' -o -name '*.cc' -print ... but failed to understand that this no longer printed the '*.[hc]' names. Fix this by adding a '-print' for '*.[hc]'. Tested by doing: ... $ cd build/gdb $ make po/gdb.pot ... $ grep -c symtab.c po/gdb.pot 102 ... --- diff --git a/gdb/po/gdbtext b/gdb/po/gdbtext index b35c66560a7..37cd6dd3ae9 100755 --- a/gdb/po/gdbtext +++ b/gdb/po/gdbtext @@ -22,7 +22,8 @@ do -name '*-stub.c' -prune -o \ -name 'testsuite' -prune -o \ -name 'init.c' -prune -o \ - -name '*.[hc]' -o -name '*.cc' -print + -name '*.[hc]' -print -o \ + -name '*.cc' -print ) done | ${xgettext} \ --default-domain=${package} \