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

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: Removed 3 tests from ARM as they don't really test anything new Created 9 years, 8 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') | no next file with comments »
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..04f3bdd65cb075ac6bf73691a1f4e657479ca6c8 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 {
+ archUnknown,
+ archArm,
+ archX86,
+
+ archCount // Number of architectures.
+ };
+
KernelCollector();
virtual ~KernelCollector();
@@ -41,6 +50,10 @@ class KernelCollector : public CrashCollector {
std::string *kernel_signature,
bool print_diagnostics);
+ // Set the architecture of the crash dumps we are looking at.
+ void SetArch(enum ArchKind arch);
+ enum ArchKind GetArch() { return arch_; }
+
private:
friend class KernelCollectorTest;
FRIEND_TEST(KernelCollectorTest, ClearPreservedDump);
@@ -62,9 +75,15 @@ class KernelCollector : public CrashCollector {
bool print_diagnostics,
std::string *panic_message);
+ // Returns the architecture kind for which we are built - enum ArchKind.
+ enum ArchKind GetCompilerArch(void);
+
bool is_enabled_;
FilePath preserved_dump_path_;
static const char kClearingSequence[];
+
+ // The architecture of kernel dump strings we are working with.
+ enum ArchKind arch_;
};
#endif // _CRASH_REPORTER_KERNEL_COLLECTOR_H_
« no previous file with comments | « no previous file | kernel_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698