aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-03-31 16:38:15 +0200
committerHans Bolinder <[email protected]>2017-04-03 14:35:11 +0200
commit20ba9ab511e645098ea278d2c96638e225a5013e (patch)
tree9955bd1d8cab41498afb5b9a8718443d7aabe3f8
parent97c3397831811fbde6fd60678e7056ee580210e3 (diff)
downloadotp-20ba9ab511e645098ea278d2c96638e225a5013e.tar.gz
otp-20ba9ab511e645098ea278d2c96638e225a5013e.tar.bz2
otp-20ba9ab511e645098ea278d2c96638e225a5013e.zip
debugger: Enable editing of bit strings in the bindings area
The evaluated string looked like "V=<<1>>", which cannot be scanned correctly. A space after "=" fixes the bug.
-rw-r--r--lib/debugger/src/dbg_wx_trace.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/debugger/src/dbg_wx_trace.erl b/lib/debugger/src/dbg_wx_trace.erl
index 29c8e8cefb..f4ee30618c 100644
--- a/lib/debugger/src/dbg_wx_trace.erl
+++ b/lib/debugger/src/dbg_wx_trace.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2008-2016. All Rights Reserved.
+%% Copyright Ericsson AB 2008-2017. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -524,7 +524,8 @@ gui_cmd({edit, {Var, Value}}, State) ->
cancel ->
State;
{Var, Term} ->
- Cmd = atom_to_list(Var)++"="++io_lib:format("~w", [Term]),
+ %% The space after "=" is needed for handling "B= <<1>>".
+ Cmd = atom_to_list(Var)++"= "++io_lib:format("~w", [Term]),
gui_cmd({user_command, lists:flatten(Cmd)}, State)
end.