summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2012-08-23 18:45:54 +0300
committerAlexander Bokovoy <ab@samba.org>2012-09-07 12:31:42 +0200
commitc63dcc97b695ceab2bbd8f421f56b623b0d867a2 (patch)
treecd98d0371bb2ad0976f7fe19ab2e7bd78e5b5e15 /buildtools
parent6b2e7aabb79f7825568985a9138394dee06b76de (diff)
downloadsamba-c63dcc97b695ceab2bbd8f421f56b623b0d867a2.tar.gz
samba-c63dcc97b695ceab2bbd8f421f56b623b0d867a2.tar.bz2
samba-c63dcc97b695ceab2bbd8f421f56b623b0d867a2.zip
gen_abi.sh: filter out symbols not needed for ABI
gdb does not allow to print definitions of certain section names and special symbols used for dynamic loading machinery: __bss_start _edata _init _fini _end Please note the space before the pattern, it is needed to avoid hungry matches of valid symbols with these as substrings (foo_init, for example). Without this patch gdb on Fedora 18 breaks when attempting to print function and struct signature.
Diffstat (limited to 'buildtools')
-rwxr-xr-xbuildtools/scripts/abi_gen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/scripts/abi_gen.sh b/buildtools/scripts/abi_gen.sh
index ed6f445519..787718cb20 100755
--- a/buildtools/scripts/abi_gen.sh
+++ b/buildtools/scripts/abi_gen.sh
@@ -10,7 +10,7 @@ cat <<EOF
set height 0
set width 0
EOF
-nm "$SHAREDLIB" | cut -d' ' -f2- | egrep '^[BDGTRVWS]' | grep -v @ | cut -c3- | sort | while read s; do
+nm "$SHAREDLIB" | cut -d' ' -f2- | egrep '^[BDGTRVWS]' | grep -v @ | egrep -v ' (__bss_start|_edata|_init|_fini|_end)' | cut -c3- | sort | while read s; do
echo "echo $s: "
echo p $s
done