aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/cdv_mem_cb.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2016-11-23 15:15:31 +0100
committerSiri Hansen <[email protected]>2016-11-30 14:09:17 +0100
commit3131852908ae711502ca5a9a3a8a63109bc83be2 (patch)
treed584d1a0d36d9ef2c2613b63aa68c5a9b65ff176 /lib/observer/src/cdv_mem_cb.erl
parent4683b5c227a238ee27f658bdfe2981c4b69acf09 (diff)
downloadotp-3131852908ae711502ca5a9a3a8a63109bc83be2.tar.gz
otp-3131852908ae711502ca5a9a3a8a63109bc83be2.tar.bz2
otp-3131852908ae711502ca5a9a3a8a63109bc83be2.zip
[crashdump_viewer] Display abort reason when truncated
If a crashdump is truncated due to size limit reached, a new 'abort' tag with reason is added at the end of the crashdump. This reason is now displayed along with the truncated-warning.
Diffstat (limited to 'lib/observer/src/cdv_mem_cb.erl')
-rw-r--r--lib/observer/src/cdv_mem_cb.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/observer/src/cdv_mem_cb.erl b/lib/observer/src/cdv_mem_cb.erl
index ba972d6963..abeddc7335 100644
--- a/lib/observer/src/cdv_mem_cb.erl
+++ b/lib/observer/src/cdv_mem_cb.erl
@@ -77,6 +77,10 @@ fix_alloc([{Title,Columns,Data}|Tables]) ->
fix_alloc(Tables)];
fix_alloc([{Title,[{_,V}|_]=Data}|Tables]) ->
fix_alloc([{Title,lists:duplicate(length(V),[]),Data}|Tables]);
+fix_alloc([{"",[]}|Tables]) -> % no name and no data, probably truncated dump
+ fix_alloc(Tables);
+fix_alloc([{Title,[]=Data}|Tables]) -> % no data, probably truncated dump
+ fix_alloc([{Title,[],Data}|Tables]);
fix_alloc([]) ->
[].