repo.or.cz
/
Samba
/
ekacnet.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix bug with incorrect flag values for inherited ace in some cases.
[Samba/ekacnet.git]
/
buildtools
/
scripts
/
abi_gen.sh
blob
e7fec4fccc407af183bff36cc064d53be87eed3f
1
#!/bin/sh
2
# generate a set of ABI signatures from a shared library
3
4
SHAREDLIB
=
"
$1
"
5
6
GDBSCRIPT
=
"gdb_syms.$$"
7
8
(
9
cat
<<EOF
10
set height 0
11
set width 0
12
EOF
13
nm
$SHAREDLIB
| cut
-d
' '
-f2-
|
egrep
'^[BDGTRVW]'
|
grep
-v
@ | cut
-c3-
|
sort
|
while
read
s
;
do
14
echo
"echo
$s
: "
15
echo
p
$s
16
done
17
) >
$GDBSCRIPT
18
19
gdb
-batch -x
$GDBSCRIPT $SHAREDLIB
< /
dev
/
null
20
rm
-f
$GDBSCRIPT