#!/bin/sh
file=${1:-${TEVWH_TMP}/magic_elf/magic_elf_static}
func=$( ${TEVWH_PATH_NM} -p ${file} \
	| ${TEVWH_PATH_SED} -ne 's/.*[tTwW] \(\<__*write\>\)/\1/p' )

${TEVWH_PATH_ECHO} "[func=${func}]"
src/magic_elf/gdb_core.sh ${file} ${func} \
| src/magic_elf/gdb_format.sh
