mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch 'mnowak/openbsd-fix-gdb-in-system-test' into 'main'
Fix system test backtrace generation on OpenBSD See merge request isc-projects/bind9!4272
This commit is contained in:
commit
58aca6d9d5
1 changed files with 4 additions and 1 deletions
|
|
@ -265,7 +265,10 @@ if [ -n "$core_dumps" ]; then
|
|||
export SYSTESTDIR="$systest"
|
||||
echoinfo "D:$systest:backtrace from $coredump:"
|
||||
echoinfo "D:$systest:--------------------------------------------------------------------------------"
|
||||
binary=$(gdb --batch --core="$coredump" 2>/dev/null | sed -ne "s/Core was generated by \`//;s/ .*'.$//p;")
|
||||
binary=$(gdb --batch --core="$coredump" 2>/dev/null | sed -ne "s|Core was generated by \`\([^' ]*\)[' ].*|\1|p")
|
||||
if [ ! -f "${binary}" ]; then
|
||||
binary=$(find "${top_builddir}" -path "*/.libs/${binary}" -type f)
|
||||
fi
|
||||
"${top_builddir}/libtool" --mode=execute gdb \
|
||||
-batch \
|
||||
-ex bt \
|
||||
|
|
|
|||
Loading…
Reference in a new issue