diff options
author | José Valim <[email protected]> | 2018-03-07 11:12:55 +0100 |
---|---|---|
committer | José Valim <[email protected]> | 2018-03-07 11:12:57 +0100 |
commit | a403cb1ed2cbab02fad23ac47b170dee1f22d7ec (patch) | |
tree | 836164d7d8638a96a3b640efff780aa9f3f17c08 /lib/debugger/src | |
parent | 7304c1e1deed6ac1fbddc88ea5c6d5138231dbf7 (diff) | |
download | otp-a403cb1ed2cbab02fad23ac47b170dee1f22d7ec.tar.gz otp-a403cb1ed2cbab02fad23ac47b170dee1f22d7ec.tar.bz2 otp-a403cb1ed2cbab02fad23ac47b170dee1f22d7ec.zip |
Do not treat binaries as top level in dbg_ieval
Prior to this change, calls inside binaries were
treated as top level which would cause the `Fun(Arg)`
call inside `<<Fun(Arg)/binary>>` to return an internal
dbg_ieval tuple and ultimately error with badarg.
Diffstat (limited to 'lib/debugger/src')
-rw-r--r-- | lib/debugger/src/dbg_ieval.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debugger/src/dbg_ieval.erl b/lib/debugger/src/dbg_ieval.erl index b0db8228e5..9840cebc1a 100644 --- a/lib/debugger/src/dbg_ieval.erl +++ b/lib/debugger/src/dbg_ieval.erl @@ -1033,7 +1033,7 @@ expr({send,Line,To0,Msg0}, Bs0, Ieval0) -> %% Binary expr({bin,Line,Fs}, Bs0, Ieval0) -> - Ieval = Ieval0#ieval{line=Line}, + Ieval = Ieval0#ieval{line=Line,top=false}, try eval_bits:expr_grp(Fs, Bs0, fun (E, B) -> expr(E, B, Ieval) end, |