5 echo "Usage $0 <function>"
12 get_function_pointers
()
19 ptrs
=$
(echo "select ptr from function_ptr where function = '$func';" | sqlite3 smatch_db.sqlite
)
21 if [ "$PARAM" = "" ] ; then
22 echo "select * from caller_info where function = '$ptr' and type='$TYPE';" | sqlite3 smatch_db.sqlite
24 echo "select * from caller_info where function = '$ptr' and type='$TYPE' and parameter='$PARAM';" | sqlite3 smatch_db.sqlite
32 if [ "$func" = "" ] ; then
36 if [ "$PARAM" = "" ] ; then
37 echo "select * from caller_info where function = '$func' and type='$TYPE';" | sqlite3 smatch_db.sqlite
39 echo "select * from caller_info where function = '$func' and type='$TYPE' and parameter='$PARAM';" | sqlite3 smatch_db.sqlite
41 get_function_pointers
$func