Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Side by Side Diff: obsolete/breakpad/google_breakpad/processor/system_info.h

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2006, Google Inc.
2 // All rights reserved.
3 //
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are
6 // met:
7 //
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above
11 // copyright notice, this list of conditions and the following disclaimer
12 // in the documentation and/or other materials provided with the
13 // distribution.
14 // * Neither the name of Google Inc. nor the names of its
15 // contributors may be used to endorse or promote products derived from
16 // this software without specific prior written permission.
17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30 // system_info.h: Information about the system that was running a program
31 // when a crash report was produced.
32 //
33 // Author: Mark Mentovai
34
35 #ifndef GOOGLE_BREAKPAD_PROCESSOR_SYSTEM_INFO_H__
36 #define GOOGLE_BREAKPAD_PROCESSOR_SYSTEM_INFO_H__
37
38 #include <string>
39
40 namespace google_breakpad {
41
42 using std::string;
43
44 struct SystemInfo {
45 public:
46 SystemInfo() : os(), os_short(), os_version(), cpu(), cpu_info(),
47 cpu_count(0) {}
48
49 // Resets the SystemInfo object to its default values.
50 void Clear() {
51 os.clear();
52 os_short.clear();
53 os_version.clear();
54 cpu.clear();
55 cpu_info.clear();
56 cpu_count = 0;
57 }
58
59 // A string identifying the operating system, such as "Windows NT",
60 // "Mac OS X", or "Linux". If the information is present in the dump but
61 // its value is unknown, this field will contain a numeric value. If
62 // the information is not present in the dump, this field will be empty.
63 string os;
64
65 // A short form of the os string, using lowercase letters and no spaces,
66 // suitable for use in a filesystem. Possible values are "windows",
67 // "mac", and "linux". Empty if the information is not present in the dump
68 // or if the OS given by the dump is unknown. The values stored in this
69 // field should match those used by MinidumpSystemInfo::GetOS.
70 string os_short;
71
72 // A string identifying the version of the operating system, such as
73 // "5.1.2600 Service Pack 2" or "10.4.8 8L2127". If the dump does not
74 // contain this information, this field will be empty.
75 string os_version;
76
77 // A string identifying the basic CPU family, such as "x86" or "ppc".
78 // If this information is present in the dump but its value is unknown,
79 // this field will contain a numeric value. If the information is not
80 // present in the dump, this field will be empty. The values stored in
81 // this field should match those used by MinidumpSystemInfo::GetCPU.
82 string cpu;
83
84 // A string further identifying the specific CPU, such as
85 // "GenuineIntel level 6 model 13 stepping 8". If the information is not
86 // present in the dump, or additional identifying information is not
87 // defined for the CPU family, this field will be empty.
88 string cpu_info;
89
90 // The number of processors in the system. Will be greater than one for
91 // multi-core systems.
92 int cpu_count;
93 };
94
95 } // namespace google_breakpad
96
97 #endif // GOOGLE_BREAKPAD_PROCESSOR_SYSTEM_INFO_H__
OLDNEW
« no previous file with comments | « obsolete/breakpad/google_breakpad/processor/symbol_supplier.h ('k') | obsolete/gdb-utils/src/common/types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698