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

Side by Side Diff: src/client/linux/handler/exception_handler.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, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009, Google Inc. 1 // Copyright (c) 2009, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 static bool WriteMinidump(const std::string &dump_path, 139 static bool WriteMinidump(const std::string &dump_path,
140 MinidumpCallback callback, 140 MinidumpCallback callback,
141 void *callback_context); 141 void *callback_context);
142 142
143 // This structure is passed to minidump_writer.h:WriteMinidump via an opaque 143 // This structure is passed to minidump_writer.h:WriteMinidump via an opaque
144 // blob. It shouldn't be needed in any user code. 144 // blob. It shouldn't be needed in any user code.
145 struct CrashContext { 145 struct CrashContext {
146 siginfo_t siginfo; 146 siginfo_t siginfo;
147 pid_t tid; // the crashing thread. 147 pid_t tid; // the crashing thread.
148 struct ucontext context; 148 struct ucontext context;
149 #if !defined(__ARM_EABI__)
150 // #ifdef this out because FP state is not part of user ABI for Linux ARM.
149 struct _libc_fpstate float_state; 151 struct _libc_fpstate float_state;
152 #endif
150 }; 153 };
151 154
152 private: 155 private:
153 bool InstallHandlers(); 156 bool InstallHandlers();
154 void UninstallHandlers(); 157 void UninstallHandlers();
155 void PreresolveSymbols(); 158 void PreresolveSymbols();
156 159
157 void UpdateNextID(); 160 void UpdateNextID();
158 static void SignalHandler(int sig, siginfo_t* info, void* uc); 161 static void SignalHandler(int sig, siginfo_t* info, void* uc);
159 bool HandleSignal(int sig, siginfo_t* info, void* uc); 162 bool HandleSignal(int sig, siginfo_t* info, void* uc);
(...skipping 29 matching lines...) Expand all
189 static pthread_mutex_t handler_stack_mutex_; 192 static pthread_mutex_t handler_stack_mutex_;
190 193
191 // A vector of the old signal handlers. The void* is a pointer to a newly 194 // A vector of the old signal handlers. The void* is a pointer to a newly
192 // allocated sigaction structure to avoid pulling in too many includes. 195 // allocated sigaction structure to avoid pulling in too many includes.
193 std::vector<std::pair<int, void *> > old_handlers_; 196 std::vector<std::pair<int, void *> > old_handlers_;
194 }; 197 };
195 198
196 } // namespace google_breakpad 199 } // namespace google_breakpad
197 200
198 #endif // CLIENT_LINUX_HANDLER_EXCEPTION_HANDLER_H_ 201 #endif // CLIENT_LINUX_HANDLER_EXCEPTION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698