diff options
author | Dan Gudmundsson <[email protected]> | 2013-11-19 11:00:32 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2014-01-27 16:13:57 +0100 |
commit | 5a30dd40a691d610def7b1f00cf39ed0d78eb900 (patch) | |
tree | a9f607e6f972be384b6dbc8f230b85142824da87 /lib/observer/src/cdv_bin_wx.erl | |
parent | cf20035dc7a4fbab47ce17b99b674e4db5eb7a07 (diff) | |
download | otp-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.erl | 5 |
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, []}}. |