$OpenBSD: patch-contrib_scripts_ast_coredumper,v 1.4 2018/07/18 08:47:28 sthen Exp $
Index: contrib/scripts/ast_coredumper
--- contrib/scripts/ast_coredumper.orig
+++ contrib/scripts/ast_coredumper
@@ -250,7 +250,7 @@ EOF
 
 # For *BSD, the preferred gdb may be in /usr/local/bin so we
 # need to search for one that supports python.
-for g in $(which -a gdb) ; do
+for g in $(which -a egdb; which -a gdb) ; do
 	result=$($g --batch --ex "python print('hello')" 2>/dev/null || : )
 	if [[ "$result" =~ ^hello$ ]] ; then
 		GDB=$g
@@ -271,7 +271,7 @@ if [ -n "$OUTPUTDIR" ] ; then
 fi
 
 if [ ${#COREDUMPS[@]} -eq 0 ] ; then
-	COREDUMPS+=(/tmp/core[-._]asterisk!(*.txt) /tmp/core[-._]$(hostname)!(*.txt))
+	COREDUMPS+=(/var/crash/asterisk/*.core /tmp/asterisk.core)
 fi
 
 DATEFORMAT=${DATEFORMAT:-'date +%FT%H-%M-%S%z'}
