source: vendor/current/buildtools/scripts/abi_gen.sh

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 491 bytes
Line 
1#!/bin/sh
2# generate a set of ABI signatures from a shared library
3
4SHAREDLIB="$1"
5
6GDBSCRIPT="gdb_syms.$$"
7
8(
9cat <<EOF
10set height 0
11set width 0
12EOF
13nm "$SHAREDLIB" | cut -d' ' -f2- | egrep '^[BDGTRVWS]' | grep -v @ | egrep -v ' (__bss_start|_edata|_init|_fini|_end)' | cut -c3- | sort | while read s; do
14 echo "echo $s: "
15 echo p $s
16done
17) > $GDBSCRIPT
18
19# forcing the terminal avoids a problem on Fedora12
20TERM=none gdb -batch -x $GDBSCRIPT "$SHAREDLIB" < /dev/null
21rm -f $GDBSCRIPT
Note: See TracBrowser for help on using the repository browser.