diff --git a/pages/linux/nm.md b/pages/linux/nm.md index f2cfecdd6..60cf6137e 100644 --- a/pages/linux/nm.md +++ b/pages/linux/nm.md @@ -6,10 +6,6 @@ `nm -g {{file.o}}` -- Demangle C++ symbols (make them readable): - -`nm --demangle {{file.o}}` - - List only undefined symbols in a file: `nm -u {{file.o}}` @@ -17,3 +13,7 @@ - List all symbols, even debugging symbols: `nm -a {{file.o}}` + +- Demangle C++ symbols (make them readable): + +`nm --demangle {{file.o}}` diff --git a/pages/osx/nm.md b/pages/osx/nm.md index a9919ba48..037817c1b 100644 --- a/pages/osx/nm.md +++ b/pages/osx/nm.md @@ -14,6 +14,6 @@ `nm -a {{file.o}}` -- Demangle C++ symbols: +- Demangle C++ symbols (make them readable): -`nm {{file.o}} | c++filt` +`nm -demangle {{file.o}}`