aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/cdv_bin_wx.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2013-11-19 11:00:32 +0100
committerDan Gudmundsson <[email protected]>2014-01-27 16:13:57 +0100
commit5a30dd40a691d610def7b1f00cf39ed0d78eb900 (patch)
treea9f607e6f972be384b6dbc8f230b85142824da87 /lib/observer/src/cdv_bin_wx.erl
parentcf20035dc7a4fbab47ce17b99b674e4db5eb7a07 (diff)
downloadotp-5a30dd40a691d610def7b1f00cf39ed0d78eb900.tar.gz
otp-5a30dd40a691d610def7b1f00cf39ed0d78eb900.tar.bz2
otp-5a30dd40a691d610def7b1f00cf39ed0d78eb900.zip
observer: Use crashdump_viewer's term viewer to display large terms and binaries
Diffstat (limited to 'lib/observer/src/cdv_bin_wx.erl')
-rw-r--r--lib/observer/src/cdv_bin_wx.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/observer/src/cdv_bin_wx.erl b/lib/observer/src/cdv_bin_wx.erl
index d2cbcfb747..6cf344f945 100644
--- a/lib/observer/src/cdv_bin_wx.erl
+++ b/lib/observer/src/cdv_bin_wx.erl
@@ -21,7 +21,10 @@
detail_pages/0]).
%% Callbacks for cdv_detail_win
-get_details(Id) ->
+get_details({_, {T,Key}}) ->
+ [{Key,Term}] = ets:lookup(T,Key),
+ {ok,{"Expanded Binary", Term, []}};
+get_details({cdv, Id}) ->
{ok,Bin} = crashdump_viewer:expand_binary(Id),
{ok,{"Expanded Binary", Bin, []}}.