|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * The class CrashInfoConsts is part of CrashAnalyser CrashInfoFile plugin. |
|
16 * Defines constant strings used in the crash info file format. |
|
17 * |
|
18 */ |
|
19 using System; |
|
20 using System.Collections.Generic; |
|
21 using System.Text; |
|
22 |
|
23 namespace CrashInfoFilePlugin.PluginImplementations.FileFormat |
|
24 { |
|
25 internal class CrashInfoConsts |
|
26 { |
|
27 //General constants |
|
28 public const int KVersionNumber = 10; |
|
29 public const string KNewIdStart = "["; |
|
30 public const string KNewIdEnd = "]"; |
|
31 public const string KCloseIdStart = "[/"; |
|
32 public const string KCloseIdEnd = "]"; |
|
33 public const string KSeparator = "|"; |
|
34 public const string KEOL = "\r\n"; |
|
35 public const string KRegistrationMiscInfo = "MOBILECRASH_REGISTRATION"; |
|
36 public const string KAliveTimeMiscInfo = "MOBILECRASH_ALIVETIME"; |
|
37 |
|
38 //Data item identifiers |
|
39 public const string Kversion = "VERSION"; |
|
40 public const string Ktimestamp = "TIMESTAMP"; |
|
41 public const string Kromid = "ROMID"; |
|
42 public const string Ksw_version = "SW_VERSION"; |
|
43 public const string Kvariant_id = "VARIANT_ID"; |
|
44 public const string Khw_version = "HW_VERSION"; |
|
45 public const string Kpanic_id = "PANIC_ID"; |
|
46 public const string Kpanic_category = "PANIC_CATEGORY"; |
|
47 public const string Klanguage = "LANGUAGE"; |
|
48 public const string Kpanicked_process = "PANICKED_PROCESS"; |
|
49 public const string Kprogram_counter = "PROGRAM_COUNTER"; |
|
50 public const string Kcrashed_module_name = "CRASHED_MODULE_NAME"; |
|
51 public const string Kregister = "REGISTER"; |
|
52 public const string Kcrashtime_loaded_dlls = "CRASHTIME_LOADED_DLLS"; |
|
53 public const string Kavailable_memory = "AVAILABLE_MEMORY"; |
|
54 public const string Kuser_comment = "USER_COMMENT"; |
|
55 public const string Kmemory_info = "MEMORY_INFO"; |
|
56 public const string Kmisc_info = "MISC_INFO"; |
|
57 public const string Kreporter = "REPORTER"; |
|
58 public const string Karchive = "ARCHIVE"; |
|
59 public const string Kproduct_type = "PRODUCT_TYPE"; |
|
60 public const string Kimei = "IMEI"; |
|
61 public const string Knetwork_country_code = "NETWORK_COUNTRY_CODE"; |
|
62 public const string Knetwork_identity = "NETWORK_IDENTITY"; |
|
63 public const string Kresetreason = "RESETREASON"; |
|
64 public const string Kuptime = "UPTIME"; |
|
65 public const string Ktestset = "TESTSET"; |
|
66 public const string Ksymbols = "SYMBOLS"; |
|
67 public const string Kcall_stack = "CALL_STACK"; |
|
68 public const string Kexcinfo = "EXCINFO"; |
|
69 public const string Ksiminfo = "SIMINFO"; |
|
70 public const string Klocinfo = "LOCINFO"; |
|
71 public const string Kcellid = "CELLID"; |
|
72 public const string Kpsninfo = "PSNINFO"; |
|
73 public const string Ks60version = "S60VERSION"; |
|
74 public const string Kdiskinfo = "DISKINFO"; |
|
75 public const string Kmmcinfo = "MMCINFO"; |
|
76 public const string Kuid = "UID"; |
|
77 public const string Keventlog = "EVENTLOG"; |
|
78 public const string Kproduct_code = "PRODUCT_CODE"; |
|
79 public const string Kvariant_version = "VARIANT_VERSION"; |
|
80 public const string Kfile_type = "FILE_TYPE"; |
|
81 public const string Kreport_type = "REPORT_TYPE"; |
|
82 public const string Kreport_category = "REPORT_CATEGORY"; |
|
83 public const string Kreport_ok = "REPORT_OK"; |
|
84 public const string Kreport_fail = "REPORT_FAIL"; |
|
85 public const string Kreport_param_name1 = "REPORT_PARAM_NAME1"; |
|
86 public const string Kreport_param_value1 = "REPORT_PARAM_VALUE1"; |
|
87 public const string Kreport_param_name2 = "REPORT_PARAM_NAME2"; |
|
88 public const string Kreport_param_value2 = "REPORT_PARAM_VALUE2"; |
|
89 public const string Kreport_param_name3 = "REPORT_PARAM_NAME3"; |
|
90 public const string Kreport_param_value3 = "REPORT_PARAM_VALUE3"; |
|
91 public const string Kreport_comments = "REPORT_COMMENTS"; |
|
92 public const string Ktrace_data = "TRACE_DATA"; |
|
93 public const string Knum_datablocks = "NUM_DATABLOCKS"; |
|
94 |
|
95 //CrashAnalyser implementation's own types (not used in selge output) |
|
96 |
|
97 public const string Kregister_extra = "REGISTER_EXTRA"; |
|
98 public const string Kcall_stack_text = "CALL_STACK_TEXT"; |
|
99 public const string Kcrash_hash = "DEFECT_HASH"; // New crash hash that DbMover used to create itself. |
|
100 public const string Kbinfile_name = "BIN_FILE_NAME"; |
|
101 public const string Ksymbolfile_names = "SYMBOL_FILE_NAME"; |
|
102 |
|
103 public const int KMaxStackSize = 65000; //max length of call stack output in bytes |
|
104 public const int KMaxItemAboveSP = 7; //How many items are taken above stack pointer, should never be less than 2 to keep PC and LR |
|
105 public const int KNonSymbolItemsAfterSP = 20; //How many items are always taken below stack pointer (rest items are taken if they have symbols) |
|
106 |
|
107 |
|
108 //Internally used constants |
|
109 |
|
110 public enum MobileCrashFileType |
|
111 { |
|
112 ETypeBasicCrash = 0, |
|
113 ETypeCrashAPIReport, |
|
114 ETypeRegistrationMessage, |
|
115 ETypeAliveMessage |
|
116 } |
|
117 |
|
118 } |
|
119 } |