diff options
author | Björn Gustavsson <[email protected]> | 2011-03-17 08:33:40 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-08-16 08:58:47 +0200 |
commit | 45ec105b3a7962370413906b5fa49a6a73cf3d83 (patch) | |
tree | f28004a6a89f19623ccb9a427ef7bd63261af1f7 /lib/debugger/src/dbg_iload.erl | |
parent | 059dab74c2930eb5627737c336c428ca30f290c5 (diff) | |
download | otp-45ec105b3a7962370413906b5fa49a6a73cf3d83.tar.gz otp-45ec105b3a7962370413906b5fa49a6a73cf3d83.tar.bz2 otp-45ec105b3a7962370413906b5fa49a6a73cf3d83.zip |
Make sure that erlang:raise/3 sets the emulated stacktrace
erlang:raise/3 was evaluated in the real process, which produced
a correct stacktrace, but did not set emulated stacktrace for the
process. Thus, a subsequent call to erlang:get_stacktrace/0 would
retrieve the previous stacktrace for the process.
Diffstat (limited to 'lib/debugger/src/dbg_iload.erl')
-rw-r--r-- | lib/debugger/src/dbg_iload.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/debugger/src/dbg_iload.erl b/lib/debugger/src/dbg_iload.erl index c94dce1b5e..db0fe0bc10 100644 --- a/lib/debugger/src/dbg_iload.erl +++ b/lib/debugger/src/dbg_iload.erl @@ -378,6 +378,8 @@ expr({call,Line,{remote,_,{atom,_,erlang},{atom,_,error}},[_]=As}) -> {dbg,Line,error,expr_list(As)}; expr({call,Line,{remote,_,{atom,_,erlang},{atom,_,exit}},[_]=As}) -> {dbg,Line,exit,expr_list(As)}; +expr({call,Line,{remote,_,{atom,_,erlang},{atom,_,raise}},[_,_,_]=As}) -> + {dbg,Line,raise,expr_list(As)}; expr({call,Line,{remote,_,{atom,_,erlang},{atom,_,apply}},[_,_,_]=As0}) -> As = expr_list(As0), {apply,Line,As}; |