|
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 XmlFilePlugin.PluginImplementations.FileFormat |
|
24 { |
|
25 internal class XmlConsts |
|
26 { |
|
27 //General constants |
|
28 public const string KRegistrationMiscInfo = "MOBILECRASH_REGISTRATION"; |
|
29 public const string KAliveTimeMiscInfo = "MOBILECRASH_ALIVETIME"; |
|
30 |
|
31 public const string Kxml_doctype = "MobileCrashCISchema.dtd"; |
|
32 public const string Kxml_unknown_process = "UnknownProcess.exe"; |
|
33 public const string Kxml_report = "report"; |
|
34 public const string Kxml_device = "device"; |
|
35 public const string Kxml_report_details = "report_details"; |
|
36 public const string Kxml_platform = "platform"; |
|
37 public const string Kxml_sos = "SOS"; |
|
38 public const string Kxml_s60 = "S60"; |
|
39 public const string Kxml_code = "code"; |
|
40 public const string Kxml_version = "version"; |
|
41 public const string Kxml_romid = "romid"; |
|
42 public const string Kxml_variant = "variant"; |
|
43 public const string Kxml_imei = "imei"; |
|
44 public const string Kxml_timestamp = "timestamp"; |
|
45 public const string Kxml_type = "type"; |
|
46 public const string Kxml_file_name = "file_name"; |
|
47 public const string Kxml_report_category = "report_category"; |
|
48 public const string Kxml_report_type = "report_type"; |
|
49 public const string Kxml_crashed_module = "crashed_module"; |
|
50 public const string Kxml_defect_hash = "defect_hash"; |
|
51 public const string Kxml_loaded_dlls = "loaded_dlls"; |
|
52 public const string Kxml_loaded_dll = "loaded_dll"; |
|
53 public const string Kxml_name = "name"; |
|
54 public const string Kxml_value = "value"; |
|
55 public const string Kxml_start_address = "start_address"; |
|
56 public const string Kxml_end_address = "end_address"; |
|
57 public const string Kxml_traces = "traces"; |
|
58 public const string Kxml_detail = "detail"; |
|
59 public const string Kxml_dictionary_values = "dictionary_values"; |
|
60 public const string Kxml_unique_values = "unique_values"; |
|
61 public const string Kxml_panic_id = "PANIC_ID"; |
|
62 public const string Kxml_panic_category = "PANIC_CATEGORY"; |
|
63 public const string Kxml_panic_description = "PANIC_DESCRIPTION"; |
|
64 public const string Kxml_language = "LANGUAGE"; |
|
65 public const string Kxml_panicked_process = "PANICKED_PROCESS"; |
|
66 public const string Kxml_network_country_code = "NETWORK_COUNTRY_CODE"; |
|
67 public const string Kxml_network_identity = "NETWORK_IDENTITY"; |
|
68 public const string Kxml_s60version = "S60VERSION"; |
|
69 public const string Kxml_production_mode = "PRODUCTION_MODE"; |
|
70 public const string Kxml_crash_source = "CRASH_SOURCE"; |
|
71 |
|
72 public const string Kxml_product_code = "P_CODE"; |
|
73 public const string Kxml_variant_version = "VARIANT_VERSION"; |
|
74 public const string Kxml_file_type = "FILE_TYPE"; |
|
75 public const string Kxml_available_memory = "AVAILABLE_MEMORY"; |
|
76 public const string Kxml_program_counter = "PROGRAM_COUNTER"; |
|
77 public const string Kxml_program_counter_symbol = "PC_SYMBOL"; |
|
78 public const string Kxml_misc_info = "MISC_INFO"; |
|
79 public const string Kxml_reporter = "REPORTER"; |
|
80 public const string Kxml_resetreason = "RESETREASON"; |
|
81 public const string Kxml_uptime = "UPTIME"; |
|
82 public const string Kxml_siminfo = "SIMINFO"; |
|
83 public const string Kxml_locinfo = "LOCINFO"; |
|
84 public const string Kxml_cellid = "CELLID"; |
|
85 public const string Kxml_psninfo = "PSNINFO"; |
|
86 public const string Kxml_uid = "UID"; |
|
87 public const string Kxml_testset = "TESTSET"; |
|
88 public const string Kxml_diskinfo = "DISKINFO"; |
|
89 public const string Kxml_phone_number = "PHONE_NUMBER"; |
|
90 public const string Kxml_register = "REGISTER"; |
|
91 public const string Kxml_register_extra = "REGISTER_EXTRA"; |
|
92 public const string Kxml_call_stack_text = "CALL_STACK"; |
|
93 public const string Kxml_trace_data = "TRACE_DATA"; |
|
94 public const string Kxml_eventlog = "EVENTLOG"; |
|
95 public const string Kxml_symbol_file_name = "SYMBOL_FILE_NAME"; |
|
96 |
|
97 public const string Kxml_report_ok = "REPORT_OK"; |
|
98 public const string Kxml_report_fail = "REPORT_FAIL"; |
|
99 public const string Kxml_report_param_name1 = "REPORT_PARAM_NAME1"; |
|
100 public const string Kxml_report_param_value1 = "REPORT_PARAM_VALUE1"; |
|
101 public const string Kxml_report_param_name2 = "REPORT_PARAM_NAME2"; |
|
102 public const string Kxml_report_param_value2 = "REPORT_PARAM_VALUE2"; |
|
103 public const string Kxml_report_param_name3 = "REPORT_PARAM_NAME3"; |
|
104 public const string Kxml_report_param_value3 = "REPORT_PARAM_VALUE3"; |
|
105 public const string Kxml_report_comments = "REPORT_COMMENTS"; |
|
106 |
|
107 public const string Kxml_separator = "|"; |
|
108 public const string Kxml_symbol_separator = ":"; |
|
109 public const string Kxml_EOL = "\r\n"; |
|
110 |
|
111 public const string Kxml_type_crash = "crash"; |
|
112 public const string Kxml_type_report = "report"; |
|
113 public const string Kxml_type_regmsg = "rgmsg"; |
|
114 public const string Kxml_type_alivemsg = "alivemsg"; |
|
115 |
|
116 public const string Kxml_production_mode_value = "Production mode"; |
|
117 public const string Kxml_rnd_mode_value = "R&D mode"; |
|
118 public const string Kxml_crash_source_user = "User"; |
|
119 public const string Kxml_crash_source_kernel = "Kernel"; |
|
120 |
|
121 public const int KMaxStackSize = 65000; //max length of call stack output in bytes |
|
122 public const int KMaxItemAboveSP = 7; //How many items are taken above stack pointer, should never be less than 2 to keep PC and LR |
|
123 public const int KNonSymbolItemsAfterSP = 20; //How many items are always taken below stack pointer (rest items are taken if they have symbols) |
|
124 |
|
125 //Internally used constants |
|
126 |
|
127 public enum MobileCrashFileType |
|
128 { |
|
129 ETypeBasicCrash = 0, |
|
130 ETypeCrashAPIReport, |
|
131 ETypeRegistrationMessage, |
|
132 ETypeAliveMessage |
|
133 } |
|
134 |
|
135 } |
|
136 } |