aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger/src
diff options
context:
space:
mode:
authorJosé Valim <[email protected]>2018-03-07 11:12:55 +0100
committerJosé Valim <[email protected]>2018-03-07 11:12:57 +0100
commita403cb1ed2cbab02fad23ac47b170dee1f22d7ec (patch)
tree836164d7d8638a96a3b640efff780aa9f3f17c08 /lib/debugger/src
parent7304c1e1deed6ac1fbddc88ea5c6d5138231dbf7 (diff)
downloadotp-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.erl2
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,