Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dschmidt/libcrashreporter-qt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Schmidt <dschmidt@owncloud.com>2021-10-22 13:13:49 +0300
committerGitHub <noreply@github.com>2021-10-22 13:13:49 +0300
commit47dbf7629f07608416a0476b82c98004f04fbdde (patch)
treeefe98b37a264527d1931a9500accd573eaa24bf2
parente929c058b3644103cd524cfc0446f31df58e4275 (diff)
parentd2c27465d8bda0e71d19da35a793fcda2158f65e (diff)
Merge pull request #32 from dschmidt/work/ucontextHEADmaster
Fix build, since c004f32a52a27b84b61ee1f454ac7337eee7d4ef ucontext is…
-rw-r--r--3rdparty/breakpad/client/linux/handler/exception_handler.cc6
-rw-r--r--3rdparty/breakpad/client/linux/handler/exception_handler.h2
-rw-r--r--3rdparty/breakpad/client/linux/minidump_writer/minidump_writer.cc2
3 files changed, 5 insertions, 5 deletions
diff --git a/3rdparty/breakpad/client/linux/handler/exception_handler.cc b/3rdparty/breakpad/client/linux/handler/exception_handler.cc
index a772321..2db16a1 100644
--- a/3rdparty/breakpad/client/linux/handler/exception_handler.cc
+++ b/3rdparty/breakpad/client/linux/handler/exception_handler.cc
@@ -391,12 +391,12 @@ bool ExceptionHandler::HandleSignal(int sig, siginfo_t* info, void* uc) {
}
CrashContext context;
memcpy(&context.siginfo, info, sizeof(siginfo_t));
- memcpy(&context.context, uc, sizeof(struct ucontext_t));
+ memcpy(&context.context, uc, sizeof(ucontext_t));
#if !defined(__ARM_EABI__) && !defined(__mips__)
// FP state is not part of user ABI on ARM Linux.
// In case of MIPS Linux FP state is already part of struct ucontext
// and 'float_state' is not a member of CrashContext.
- struct ucontext_t *uc_ptr = (struct ucontext_t*)uc;
+ ucontext_t *uc_ptr = (ucontext_t*)uc;
if (uc_ptr->uc_mcontext.fpregs) {
memcpy(&context.float_state,
uc_ptr->uc_mcontext.fpregs,
@@ -420,7 +420,7 @@ bool ExceptionHandler::SimulateSignalDelivery(int sig) {
// ExceptionHandler::HandleSignal().
siginfo.si_code = SI_USER;
siginfo.si_pid = getpid();
- struct ucontext_t context;
+ ucontext_t context;
getcontext(&context);
return HandleSignal(sig, &siginfo, &context);
}
diff --git a/3rdparty/breakpad/client/linux/handler/exception_handler.h b/3rdparty/breakpad/client/linux/handler/exception_handler.h
index ece68d7..9b153e4 100644
--- a/3rdparty/breakpad/client/linux/handler/exception_handler.h
+++ b/3rdparty/breakpad/client/linux/handler/exception_handler.h
@@ -189,7 +189,7 @@ class ExceptionHandler {
struct CrashContext {
siginfo_t siginfo;
pid_t tid; // the crashing thread.
- struct ucontext_t context;
+ ucontext_t context;
#if !defined(__ARM_EABI__) && !defined(__mips__)
// #ifdef this out because FP state is not part of user ABI for Linux ARM.
// In case of MIPS Linux FP state is already part of struct ucontext
diff --git a/3rdparty/breakpad/client/linux/minidump_writer/minidump_writer.cc b/3rdparty/breakpad/client/linux/minidump_writer/minidump_writer.cc
index 100dbf6..57f97d5 100644
--- a/3rdparty/breakpad/client/linux/minidump_writer/minidump_writer.cc
+++ b/3rdparty/breakpad/client/linux/minidump_writer/minidump_writer.cc
@@ -1725,7 +1725,7 @@ class MinidumpWriter {
const int fd_; // File descriptor where the minidum should be written.
const char* path_; // Path to the file where the minidum should be written.
- const struct ucontext_t* const ucontext_; // also from the signal handler
+ const ucontext_t* const ucontext_; // also from the signal handler
const struct _libc_fpstate* const float_state_; // ditto
LinuxDumper* dumper_;
MinidumpFileWriter minidump_writer_;