This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 7771cbd0d06ea38de5650bbff31d6725e92388ca
Author: Peter Bee <[email protected]>
AuthorDate: Mon Apr 20 10:31:20 2026 +0800

    sim: fix mkallsyms for Objective-C symbols on macOS
    
    /Library/Developer/CommandLineTools/usr/bin/c++filt: error: unknown 
argument '-['
    
    Signed-off-by: Peter Bee <[email protected]>
---
 tools/mkallsyms.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/mkallsyms.sh b/tools/mkallsyms.sh
index 01ebf7b3611..795c1941ebf 100755
--- a/tools/mkallsyms.sh
+++ b/tools/mkallsyms.sh
@@ -64,7 +64,8 @@ if [ -f "${1}" ];then
   ${nm} -n ${1} | grep -E " [T|t] "  | uniq | \
   while read addr type name
   do
-    echo "  { \"$(${filt} $name | sed -e "s/(.*)$//")\", (FAR ${CONST} void 
*)0x$addr },"
+    demangled=$(printf '%s\n' "$name" | ${filt} | sed -e "s/(.*)$//")
+    echo "  { \"${demangled}\", (FAR ${CONST} void *)0x$addr },"
   done
 fi
 

Reply via email to