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

Side by Side Diff: src/client/linux/dump_writer_common/ucontext_reader.h

Issue 1726163002: Fix building on musl libc. Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/client/linux/crash_generation/crash_generation_server.cc ('k') | src/client/linux/dump_writer_common/ucontext_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698