diff options
author | Evgeny Pavlov <e.pavlov@samsung.com> | 2016-07-25 15:48:25 +0300 |
---|---|---|
committer | Evgeny Pavlov <e.pavlov@samsung.com> | 2016-07-25 15:48:25 +0300 |
commit | 0fdb42a7d63c0038426abe6be46b973e47131505 (patch) | |
tree | d68c5ad912849d5c7489d9a6776f6d4222f9b9b5 /src/vm | |
parent | c5679993e947f652d6f67d29bea4482f322f3b5f (diff) | |
download | coreclr-0fdb42a7d63c0038426abe6be46b973e47131505.tar.gz coreclr-0fdb42a7d63c0038426abe6be46b973e47131505.tar.bz2 coreclr-0fdb42a7d63c0038426abe6be46b973e47131505.zip |
Fix inlining of '__jit_debug_register_code' on ARM32 release build
Diffstat (limited to 'src/vm')
-rw-r--r-- | src/vm/gdbjit.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vm/gdbjit.cpp b/src/vm/gdbjit.cpp index b572d1b445..435dec4da3 100644 --- a/src/vm/gdbjit.cpp +++ b/src/vm/gdbjit.cpp @@ -167,9 +167,10 @@ struct jit_descriptor struct jit_code_entry *relevant_entry; struct jit_code_entry *first_entry; }; -/* GDB puts a breakpoint in this function. */ +// GDB puts a breakpoint in this function. +// To prevent from inlining we add noinline attribute and inline assembler statement. extern "C" -void __attribute__((noinline)) __jit_debug_register_code() { }; +void __attribute__((noinline)) __jit_debug_register_code() { __asm__(""); }; /* Make sure to specify the version statically, because the debugger may check the version before we can set it. */ |