From ba052e67626a834249e797376bb50e7c77e3defc Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 8 Dec 2025 09:30:25 +0100 Subject: [PATCH] [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 ... --- gdb/po/gdbtext | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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} \ -- 2.47.3