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

Unified Diff: kernel_collector.h

Issue 6599022: Add ARM support (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crash-reporter.git@master
Patch Set: Tidied up architecture variations Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | kernel_collector.cc » ('j') | kernel_collector.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: kernel_collector.h
diff --git a/kernel_collector.h b/kernel_collector.h
index 708fd1b9ee7641c3b0de62f2a8c9dd0f0e996758..6f4886ef21417fb6162fa2fe18531addbcf369c0 100644
--- a/kernel_collector.h
+++ b/kernel_collector.h
@@ -18,6 +18,15 @@ class FilePath;
// Kernel crash collector.
class KernelCollector : public CrashCollector {
public:
+ // Enumeration to specify architecture type.
+ enum ArchKind {
+ archArm, // ARM variant.
+ archX86, // X86 variant.
+ archUnknown, // We don't know.
+
+ archCount // Number of architectures.
+ };
+
KernelCollector();
virtual ~KernelCollector();
@@ -62,6 +71,9 @@ class KernelCollector : public CrashCollector {
bool print_diagnostics,
std::string *panic_message);
+ // Returns the architecture kind for which we are build - enum ArchKind
+ enum ArchKind GetArch(void);
+
bool is_enabled_;
FilePath preserved_dump_path_;
static const char kClearingSequence[];
« no previous file with comments | « no previous file | kernel_collector.cc » ('j') | kernel_collector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698