mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
sim: fix mkallsyms for Objective-C symbols on macOS
/Library/Developer/CommandLineTools/usr/bin/c++filt: error: unknown argument '-[' Signed-off-by: Peter Bee <bijunda@bytedance.com>
This commit is contained in:
parent
2a353fcc0c
commit
7771cbd0d0
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue