| OLD | NEW |
| 1 // Copyright (c) 2014, Google Inc. | 1 // Copyright (c) 2014, 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 struct UContextReader { | 43 struct UContextReader { |
| 44 static uintptr_t GetStackPointer(const struct ucontext* uc); | 44 static uintptr_t GetStackPointer(const struct ucontext* uc); |
| 45 | 45 |
| 46 static uintptr_t GetInstructionPointer(const struct ucontext* uc); | 46 static uintptr_t GetInstructionPointer(const struct ucontext* uc); |
| 47 | 47 |
| 48 // Juggle a arch-specific ucontext into a minidump format | 48 // Juggle a arch-specific ucontext into a minidump format |
| 49 // out: the minidump structure | 49 // out: the minidump structure |
| 50 // info: the collection of register structures. | 50 // info: the collection of register structures. |
| 51 #if defined(__i386__) || defined(__x86_64) | 51 #if defined(__i386__) || defined(__x86_64) |
| 52 static void FillCPUContext(RawContextCPU *out, const ucontext *uc, | 52 static void FillCPUContext(RawContextCPU *out, const ucontext *uc, |
| 53 const struct _libc_fpstate* fp); | 53 const struct _fpstate* fp); |
| 54 #elif defined(__aarch64__) | 54 #elif defined(__aarch64__) |
| 55 static void FillCPUContext(RawContextCPU *out, const ucontext *uc, | 55 static void FillCPUContext(RawContextCPU *out, const ucontext *uc, |
| 56 const struct fpsimd_context* fpregs); | 56 const struct fpsimd_context* fpregs); |
| 57 #else | 57 #else |
| 58 static void FillCPUContext(RawContextCPU *out, const ucontext *uc); | 58 static void FillCPUContext(RawContextCPU *out, const ucontext *uc); |
| 59 #endif | 59 #endif |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace google_breakpad | 62 } // namespace google_breakpad |
| 63 | 63 |
| 64 #endif // CLIENT_LINUX_DUMP_WRITER_COMMON_UCONTEXT_READER_H | 64 #endif // CLIENT_LINUX_DUMP_WRITER_COMMON_UCONTEXT_READER_H |
| OLD | NEW |