From 5ec76f0af3232d450a2c5e23d83f76b6ca146318 Mon Sep 17 00:00:00 2001 From: nmk Date: Fri, 10 Dec 2010 14:31:06 +0300 Subject: [PATCH] Ticket #1800: minor enhancement and fix for mc.ext ...for .so libraries and ELF objects. .so libraries have the higher priority of extansion handling over ELF objects. Added -C -D options to nm utility for .so libraries. Added -C option to nm utility for ELF objects. Signed-off-by: Andrew Borodin --- misc/mc.ext.in | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/misc/mc.ext.in b/misc/mc.ext.in index 88d8ab426..871caab42 100644 --- a/misc/mc.ext.in +++ b/misc/mc.ext.in @@ -267,11 +267,6 @@ shell/.f regex/\.(h|hpp)$ Open=%var{EDITOR:vi} %f -# Object -type/^ELF - #Open=%var{PAGER:more} %f - View=%view{ascii} file %f && nm %f - # Asm shell/.s Open=%var{EDITOR:vi} %f @@ -280,6 +275,14 @@ shell/.s regex/\.(C|cc|cpp)$ Open=%var{EDITOR:vi} %f +# .so libraries +regex/\.(so|so\.[0-9\.]*)$ + View=%view{ascii} file %f && nm -C -D %f + +# Object +type/^ELF + #Open=%var{PAGER:more} %f + View=%view{ascii} file %f && nm -C %f ### Documentation ### @@ -294,10 +297,6 @@ shell/.info Open=info -f %f # Manual page -# Exception - .so libraries are not manual pages -regex/\.(so|so\.[0-9\.]*)$ - View=%view{ascii} file %f && nm %f - regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$ Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more} View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff @MAN_FLAGS@ @MANDOC@ ;; esac -- 2.11.4.GIT