Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abseil-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
abseil-cpp
Commits
70558763
Unverified
Commit
70558763
authored
Feb 19, 2021
by
John Paul Adrian Glaubitz
Committed by
GitHub
Feb 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix uc_mcontext register access on 32-bit PowerPC (#898)
Fixes #894
parent
b315753c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
absl/debugging/internal/examine_stack.cc
+1
-1
absl/debugging/internal/stacktrace_powerpc-inl.inc
+4
-0
No files found.
absl/debugging/internal/examine_stack.cc
View file @
70558763
...
...
@@ -56,7 +56,7 @@ void* GetProgramCounter(void* vuc) {
#elif defined(__powerpc64__)
return
reinterpret_cast
<
void
*>
(
context
->
uc_mcontext
.
gp_regs
[
32
]);
#elif defined(__powerpc__)
return
reinterpret_cast
<
void
*>
(
context
->
uc_mcontext
.
regs
->
nip
);
return
reinterpret_cast
<
void
*>
(
context
->
uc_mcontext
.
uc_regs
->
gregs
[
32
]
);
#elif defined(__riscv)
return
reinterpret_cast
<
void
*>
(
context
->
uc_mcontext
.
__gregs
[
REG_PC
]);
#elif defined(__s390__) && !defined(__s390x__)
...
...
absl/debugging/internal/stacktrace_powerpc-inl.inc
View file @
70558763
...
...
@@ -131,7 +131,11 @@ static void **NextStackFrame(void **old_sp, const void *uc) {
const
ucontext_t
*
signal_context
=
reinterpret_cast
<
const
ucontext_t
*>
(
uc
);
void
**
const
sp_before_signal
=
#if defined(__PPC64__)
reinterpret_cast
<
void
**>
(
signal_context
->
uc_mcontext
.
gp_regs
[
PT_R1
]);
#else
reinterpret_cast
<
void
**>
(
signal_context
->
uc_mcontext
.
uc_regs
->
gregs
[
PT_R1
]);
#endif
// Check that alleged sp before signal is nonnull and is reasonably
// aligned.
if
(
sp_before_signal
!=
nullptr
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment