aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger/src/dbg_ieval.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-05 12:36:41 +0100
committerHans Bolinder <[email protected]>2018-02-05 14:45:37 +0100
commit9cadd05e3ef7ee93d409b7e4ddb7c0b83b84bce0 (patch)
tree0503e6455a372fd648712f8cf5f266f52a5c6b14 /lib/debugger/src/dbg_ieval.erl
parentdc4b576b334cfff188b15740a38e7b2b1d5ab004 (diff)
downloadotp-9cadd05e3ef7ee93d409b7e4ddb7c0b83b84bce0.tar.gz
otp-9cadd05e3ef7ee93d409b7e4ddb7c0b83b84bce0.tar.bz2
otp-9cadd05e3ef7ee93d409b7e4ddb7c0b83b84bce0.zip
debugger: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/debugger/src/dbg_ieval.erl')
-rw-r--r--lib/debugger/src/dbg_ieval.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/debugger/src/dbg_ieval.erl b/lib/debugger/src/dbg_ieval.erl
index 8009d62629..b0db8228e5 100644
--- a/lib/debugger/src/dbg_ieval.erl
+++ b/lib/debugger/src/dbg_ieval.erl
@@ -924,8 +924,7 @@ expr({dbg,Line,raise,As0}, Bs0, #ieval{level=Le}=Ieval0) ->
trace(return, {Le,Error}),
{value,Error,Bs}
catch
- _:_ ->
- Stk = erlang:get_stacktrace(), %Possibly truncated.
+ _:_:Stk -> %Possibly truncated.
StkFun = fun(_) -> Stk end,
do_exception(Class, Reason, StkFun, Bs, Ieval)
end;