Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matombo
AndroidSystemCore
Commits
ec004eb1
Commit
ec004eb1
authored
Aug 8, 2018
by
Florian Mayer
Committed by
Gerrit Code Review
Aug 8, 2018
Browse files
Options
Downloads
Plain Diff
Merge "Allow to get raw register data on all platforms."
parents
f41897a6
932247e9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libunwindstack/include/unwindstack/RegsGetLocal.h
+5
-6
5 additions, 6 deletions
libunwindstack/include/unwindstack/RegsGetLocal.h
with
5 additions
and
6 deletions
libunwindstack/include/unwindstack/RegsGetLocal.h
+
5
−
6
View file @
ec004eb1
...
...
@@ -33,8 +33,7 @@ namespace unwindstack {
#if defined(__arm__)
inline
__always_inline
void
RegsGetLocal
(
Regs
*
regs
)
{
void
*
reg_data
=
regs
->
RawData
();
inline
__attribute__
((
__always_inline__
))
void
AsmGetRegs
(
void
*
reg_data
)
{
asm
volatile
(
".align 2
\n
"
"bx pc
\n
"
...
...
@@ -55,8 +54,7 @@ inline __always_inline void RegsGetLocal(Regs* regs) {
#elif defined(__aarch64__)
inline
__always_inline
void
RegsGetLocal
(
Regs
*
regs
)
{
void
*
reg_data
=
regs
->
RawData
();
inline
__attribute__
((
__always_inline__
))
void
AsmGetRegs
(
void
*
reg_data
)
{
asm
volatile
(
"1:
\n
"
"stp x0, x1, [%[base], #0]
\n
"
...
...
@@ -87,11 +85,12 @@ inline __always_inline void RegsGetLocal(Regs* regs) {
extern
"C"
void
AsmGetRegs
(
void
*
regs
);
inline
void
RegsGetLocal
(
Regs
*
regs
)
{
#endif
inline
__attribute__
((
__always_inline__
))
void
RegsGetLocal
(
Regs
*
regs
)
{
AsmGetRegs
(
regs
->
RawData
());
}
#endif
}
// namespace unwindstack
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment