Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
f98fc08b
Commit
f98fc08b
authored
13 years ago
by
Kostya Serebryany
Browse files
Options
Downloads
Patches
Plain Diff
[asan] GET_CALLER_PC macro for Win. Patch by timurrrr@google.com
llvm-svn: 149994
parent
d6125563
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler-rt/lib/asan/asan_internal.h
+9
-5
9 additions, 5 deletions
compiler-rt/lib/asan/asan_internal.h
with
9 additions
and
5 deletions
compiler-rt/lib/asan/asan_internal.h
+
9
−
5
View file @
f98fc08b
...
...
@@ -212,12 +212,16 @@ const size_t kPageSizeBits = 12;
const
size_t
kPageSize
=
1UL
<<
kPageSizeBits
;
#ifndef _WIN32
#define GET_CALLER_PC() (uintptr_t)__builtin_return_address(0)
#define GET_CURRENT_FRAME() (uintptr_t)__builtin_frame_address(0)
#
define GET_CALLER_PC() (uintptr_t)__builtin_return_address(0)
#
define GET_CURRENT_FRAME() (uintptr_t)__builtin_frame_address(0)
#else
// TODO(timurrrr): implement.
#define GET_CALLER_PC() (uintptr_t)0
#define GET_CURRENT_FRAME() (uintptr_t)0
extern
"C"
void
*
_ReturnAddress
(
void
);
# pragma intrinsic(_ReturnAddress)
# define GET_CALLER_PC() (uintptr_t)_ReturnAddress()
// CaptureStackBackTrace doesn't need to know BP on Windows.
// FIXME: This macro is still used when printing error reports though it's not
// clear if the BP value is needed in the ASan reports on Windows.
# define GET_CURRENT_FRAME() (uintptr_t)0xDEADBEEF
#endif
#define GET_BP_PC_SP \
...
...
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
register
or
sign in
to comment