source: tags/ms_ra2q56/UNIT_TESTER/make_symlist.sh

Last change on this file was 17376, checked in by westram, 6 years ago
  • skip -l on DARWIN
  • Property svn:executable set to *
File size: 754 bytes
Line 
1#!/bin/bash
2FULLLIB=$1
3SYMLIST=$2
4
5# nm is unable to demangle names on os x. use c++filt for the job.
6# some nm versions (e.g. inside homebrew) do not know how to inform about line number
7# (should only affect locating failing tests).
8if [ ${DARWIN} = 0 ]; then
9    NMARG=-l
10fi
11DUMP_SYMBOLS="nm $NMARG $FULLLIB | c++filt > $SYMLIST"
12
13# temp workaround for using gcc 4.8 on dwarf 3 system
14( eval "$DUMP_SYMBOLS" ) 2>&1 \
15    | grep -v "Dwarf Error: Invalid or unhandled FORM value" \
16    | grep -v "this reader only handles version 2 and 3 information" \
17    | grep -v "this reader can not handle sizes greater than '8'" \
18    | grep -v "this reader can only handle address sizes '2', '4' and '8'" \
19
20if (( ${PIPESTATUS[0]} )); then false; else true; fi
21
Note: See TracBrowser for help on using the repository browser.