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

Unified Diff: src/client/linux/minidump_writer/linux_dumper.h

Issue 543125: Port linux_syscall_support and linux_dumper to support Linux ARM. Unit tests... (Closed) Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Patch Set: '' Created 10 years, 11 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
Index: src/client/linux/minidump_writer/linux_dumper.h
===================================================================
--- src/client/linux/minidump_writer/linux_dumper.h (revision 400)
+++ src/client/linux/minidump_writer/linux_dumper.h (working copy)
@@ -42,7 +42,7 @@
typedef typeof(((struct user*) 0)->u_debugreg[0]) debugreg_t;
// Typedef for our parsing of the auxv variables in /proc/pid/auxv.
-#if defined(__i386)
+#if defined(__i386) || defined(__ARM_EABI__)
typedef Elf32_auxv_t elf_aux_entry;
#elif defined(__x86_64__)
typedef Elf64_auxv_t elf_aux_entry;
@@ -62,13 +62,16 @@
const void* stack; // pointer to the stack area
size_t stack_len; // length of the stack to copy
+#if defined(__i386) || defined(__x86_64)
user_regs_struct regs;
user_fpregs_struct fpregs;
-#if defined(__i386) || defined(__x86_64)
user_fpxregs_struct fpxregs;
-
Ted Mielczarek 2010/02/05 16:54:41 Somewhere along the way this got broken, this line
static const unsigned kNumDebugRegisters = 8;
debugreg_t dregs[8];
+#elif defined(__ARM_EABI__)
+ // Mimicking how strace does this(see syscall.c, search for GETREGS)
+ struct user_regs regs;
+ struct user_fpregs fpregs;
#endif
};
@@ -132,7 +135,7 @@
mutable PageAllocator allocator_;
- bool threads_suspened_;
+ bool threads_suspended_;
wasteful_vector<pid_t> threads_; // the ids of all the threads
wasteful_vector<MappingInfo*> mappings_; // info from /proc/<pid>/maps
};

Powered by Google App Engine
This is Rietveld 408576698