aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-09-27 18:10:51 +0200
committerSverker Eriksson <[email protected]>2016-09-27 18:10:51 +0200
commit2c8bdeb95830d3b1f32ec767c5371f006a8e9ab2 (patch)
tree7e3b964f5fe9f82fde83f9cf3aa13223838f00f6 /erts
parent65391d1365cabaf8516ad0af3ae77b9861de0349 (diff)
parentee80c779c3ae7900e183c98f2568d386e03e3b66 (diff)
downloadotp-2c8bdeb95830d3b1f32ec767c5371f006a8e9ab2.tar.gz
otp-2c8bdeb95830d3b1f32ec767c5371f006a8e9ab2.tar.bz2
otp-2c8bdeb95830d3b1f32ec767c5371f006a8e9ab2.zip
Merge branch 'maint'
Diffstat (limited to 'erts')
-rw-r--r--erts/etc/unix/cerl.src18
1 files changed, 14 insertions, 4 deletions
diff --git a/erts/etc/unix/cerl.src b/erts/etc/unix/cerl.src
index c5422ab2ed..30f2d831b5 100644
--- a/erts/etc/unix/cerl.src
+++ b/erts/etc/unix/cerl.src
@@ -399,19 +399,29 @@ elif [ "x$GDB" = "xdump" ]; then
cmdfile="/tmp/.cerlgdb.$$"
case "x$core" in
x/*)
- gdbcmd="$EMU_NAME ${core}"
;;
*)
dir=`pwd`
- gdbcmd="$EMU_NAME ${dir}/${core}"
+ core="${dir}/${core}"
;;
esac
- echo "set width 0
+ case `uname` in
+ Darwin)
+ echo "
+thread backtrace all
+quit
+" > $cmdfile
+ exec lldb -s $cmdfile -c ${core} $EMU_NAME
+ ;;
+ *)
+ echo "set width 0
set height 0
set verbose off
source $ROOTDIR/erts/etc/unix/etp-commands
thread apply all bt
" > $cmdfile
- exec gdb --batch --command=$cmdfile $gdbcmd
+ exec gdb --batch --command=$cmdfile $EMU_NAME $core
+ ;;
+ esac
fi