• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/google-breakpad/0002-Replace-remaining-references-to-struct-ucontext-with.patch
Romain NaourRomain Naour committed ca4009fc24e22 Nov 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 7975a962e1d6dbad5a46792a54e647abd7caf5f1 Mon Sep 17 00:00:00 2001
2
From: Mark Mentovai <mark@chromium.org>
3
Date: Tue, 19 Sep 2017 22:48:30 -0400
4
Subject: [PATCH] Replace remaining references to 'struct ucontext' with
5
 'ucontext_t'
6
​
7
This relands
8
https://chromium.googlesource.com/breakpad/breakpad/src/+/e3035bc406cee8a4d765e59ad46eb828705f17f4,
9
which was accidentally committed to breakpad/breakpad/src, the read-only
10
mirror of src in breakpad/breakpad. (Well, it should have been
11
read-only.) See https://crbug.com/766164.
12
​
13
This fixes issues with glibc-2.26.
14
​
15
See https://bugs.gentoo.org/show_bug.cgi?id=628782 ,
16
https://sourceware.org/git/?p=glibc.git;h=251287734e89a52da3db682a8241eb6bccc050c9 , and
17
https://sourceware.org/ml/libc-alpha/2017-08/msg00010.html for context.
18
Change-Id: Id66f474d636dd2afa450bab925c5514a800fdd6f
19
Reviewed-on: https://chromium-review.googlesource.com/674304
20
Reviewed-by: Mark Mentovai <mark@chromium.org>
21
​
22
(cherry picked from commit bddcc58860f522a0d4cbaa7e9d04058caee0db9d)
23
[Romain: backport from upstream]
24
Signed-off-by: Romain Naour <romain.naour@gmail.com>
25
---
26
 .../linux/dump_writer_common/ucontext_reader.cc    | 32 +++++++++++-----------
27
 .../linux/dump_writer_common/ucontext_reader.h     | 14 +++++-----
28
 src/client/linux/handler/exception_handler.cc      | 10 +++----
29
 src/client/linux/handler/exception_handler.h       |  6 ++--
30
 .../linux/microdump_writer/microdump_writer.cc     |  2 +-
31
 .../linux/minidump_writer/minidump_writer.cc       |  2 +-
32
 6 files changed, 33 insertions(+), 33 deletions(-)
33
​
34
diff --git a/src/client/linux/dump_writer_common/ucontext_reader.cc b/src/client/linux/dump_writer_common/ucontext_reader.cc
35
index c80724d..052ce37 100644
36
--- a/src/client/linux/dump_writer_common/ucontext_reader.cc
37
+++ b/src/client/linux/dump_writer_common/ucontext_reader.cc
38
@@ -36,19 +36,19 @@ namespace google_breakpad {
39
 
40
 // Minidump defines register structures which are different from the raw
41
 // structures which we get from the kernel. These are platform specific
42
-// functions to juggle the ucontext and user structures into minidump format.
43
+// functions to juggle the ucontext_t and user structures into minidump format.
44
 
45
 #if defined(__i386__)
46
 
47
-uintptr_t UContextReader::GetStackPointer(const struct ucontext* uc) {
48
+uintptr_t UContextReader::GetStackPointer(const ucontext_t* uc) {
49
   return uc->uc_mcontext.gregs[REG_ESP];
50
 }
51
 
52
-uintptr_t UContextReader::GetInstructionPointer(const struct ucontext* uc) {
53
+uintptr_t UContextReader::GetInstructionPointer(const ucontext_t* uc) {
54
   return uc->uc_mcontext.gregs[REG_EIP];
55
 }
56
 
57
-void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc,
58
+void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext_t *uc,
59
                                     const struct _libc_fpstate* fp) {
60
   const greg_t* regs = uc->uc_mcontext.gregs;
61
 
62
@@ -88,15 +88,15 @@ void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc,
63
 
64
 #elif defined(__x86_64)
65
 
66
-uintptr_t UContextReader::GetStackPointer(const struct ucontext* uc) {
67
+uintptr_t UContextReader::GetStackPointer(const ucontext_t* uc) {
68
   return uc->uc_mcontext.gregs[REG_RSP];
69
 }
70
 
71
-uintptr_t UContextReader::GetInstructionPointer(const struct ucontext* uc) {
72
+uintptr_t UContextReader::GetInstructionPointer(const ucontext_t* uc) {
73
   return uc->uc_mcontext.gregs[REG_RIP];
74
 }
75
 
76
-void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc,
77
+void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext_t *uc,
78
                                     const struct _libc_fpstate* fpregs) {
79
   const greg_t* regs = uc->uc_mcontext.gregs;
80
 
81
@@ -145,15 +145,15 @@ void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc,
82
 
83
 #elif defined(__ARM_EABI__)
84
 
85
-uintptr_t UContextReader::GetStackPointer(const struct ucontext* uc) {
86
+uintptr_t UContextReader::GetStackPointer(const ucontext_t* uc) {
87
   return uc->uc_mcontext.arm_sp;
88
 }
89
 
90
-uintptr_t UContextReader::GetInstructionPointer(const struct ucontext* uc) {
91
+uintptr_t UContextReader::GetInstructionPointer(const ucontext_t* uc) {
92
   return uc->uc_mcontext.arm_pc;
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.