source: trunk/server/buildtools/scripts/abi_gen.sh

Last change on this file was 745, checked in by Silvan Scherrer, 13 years ago

Samba Server: updated trunk to 3.6.0

File size: 460 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 @ | 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.