From 76a32d8cc684d28ae3e6d6dd6425d14b51b50b64 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 28 Nov 2017 22:48:53 -0800 Subject: [PATCH] osx/nm Add example of demangling C++ symbols. --- pages/osx/nm.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/osx/nm.md b/pages/osx/nm.md index 28f78fbdc6..a2f8c2b047 100644 --- a/pages/osx/nm.md +++ b/pages/osx/nm.md @@ -1,6 +1,6 @@ # nm -> List symbol names in object files (see c++filt). +> List symbol names in object files. - List global (extern) functions in a file (prefixed with T): @@ -13,3 +13,7 @@ - List all symbols, even debugging symbols: `nm -a {{file.o}}` + +- Demangle C++ symbols: + +`nm {{file.o}} | c++filt -p -i`