aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger/src/dbg_wx_win.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-03-31 16:41:48 +0200
committerHans Bolinder <[email protected]>2017-04-27 10:26:48 +0200
commit32c1c7e5de9240eedd421f81f84c5469e6a5d0da (patch)
tree01d3128e81cb0eeb03b9ee6171f84cbc89c36457 /lib/debugger/src/dbg_wx_win.erl
parent83172c1d549956700a9ff63d5dfabf9e5c1c2739 (diff)
downloadotp-32c1c7e5de9240eedd421f81f84c5469e6a5d0da.tar.gz
otp-32c1c7e5de9240eedd421f81f84c5469e6a5d0da.tar.bz2
otp-32c1c7e5de9240eedd421f81f84c5469e6a5d0da.zip
debugger: Improve handling of pids, ports, and refs
The extended parser is used by the debugger for handling pids, ports, references, and external funs in the evaluator area and in the bindings area. Notice that pids, ports, references, and external funs that cannot be created in the currently running are ignored (as before).
Diffstat (limited to 'lib/debugger/src/dbg_wx_win.erl')
-rw-r--r--lib/debugger/src/dbg_wx_win.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/debugger/src/dbg_wx_win.erl b/lib/debugger/src/dbg_wx_win.erl
index 2c9d83ea74..f1298154ab 100644
--- a/lib/debugger/src/dbg_wx_win.erl
+++ b/lib/debugger/src/dbg_wx_win.erl
@@ -273,10 +273,9 @@ entry(Parent, Title, Prompt, {Type, Value}) ->
verify(Type, Str) ->
- case erl_scan:string(Str) of
+ case erl_scan:string(Str, 1, [text]) of
{ok, Tokens, _EndLine} when Type==term ->
-
- case erl_parse:parse_term(Tokens++[{dot, erl_anno:new(1)}]) of
+ case lib:extended_parse_term(Tokens++[{dot, erl_anno:new(1)}]) of
{ok, Value} -> {edit, Value};
_Error ->
ignore