aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/cdv_timer_cb.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2014-05-27 12:48:00 +0200
committerSiri Hansen <[email protected]>2014-05-27 14:17:41 +0200
commitdbd2604939e92c110277d941589b8965fdda4270 (patch)
tree7f073ac6c07cc710d3cdac0254e0cae0f36dfd55 /lib/observer/src/cdv_timer_cb.erl
parent339b6416664c7dc64d72c21653138137e8d1018f (diff)
downloadotp-dbd2604939e92c110277d941589b8965fdda4270.tar.gz
otp-dbd2604939e92c110277d941589b8965fdda4270.tar.bz2
otp-dbd2604939e92c110277d941589b8965fdda4270.zip
[cdv] Allow registered name as owner of timer in crashdump
crashdump_viewer would crash if the owner of a timer was specified as the process' regisered name. This has been corrected.
Diffstat (limited to 'lib/observer/src/cdv_timer_cb.erl')
-rw-r--r--lib/observer/src/cdv_timer_cb.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/observer/src/cdv_timer_cb.erl b/lib/observer/src/cdv_timer_cb.erl
index 9cdbfa05a9..d44592cf18 100644
--- a/lib/observer/src/cdv_timer_cb.erl
+++ b/lib/observer/src/cdv_timer_cb.erl
@@ -27,18 +27,21 @@
%% Defines
-define(COL_OWNER, 0).
--define(COL_MSG, ?COL_OWNER+1).
+-define(COL_NAME, ?COL_OWNER+1).
+-define(COL_MSG, ?COL_NAME+1).
-define(COL_TIME, ?COL_MSG+1).
%% Callbacks for cdv_virtual_list_wx
col_to_elem(id) -> col_to_elem(?COL_OWNER);
col_to_elem(?COL_OWNER) -> #timer.pid;
+col_to_elem(?COL_NAME) -> #timer.name;
col_to_elem(?COL_MSG) -> #timer.msg;
col_to_elem(?COL_TIME) -> #timer.time.
col_spec() ->
[{"Owner", ?wxLIST_FORMAT_LEFT, 110},
- {"Message", ?wxLIST_FORMAT_LEFT, 400},
+ {"Owner name", ?wxLIST_FORMAT_LEFT, 150},
+ {"Message", ?wxLIST_FORMAT_LEFT, 300},
{"Time left (ms)", ?wxLIST_FORMAT_RIGHT, 80}].
get_info(Owner) ->