diff options
author | Dmitri Botcharnikov <dmitry.b@samsung.com> | 2016-07-14 19:23:23 +0300 |
---|---|---|
committer | Evgeny Pavlov <e.pavlov@samsung.com> | 2016-07-22 10:57:30 +0300 |
commit | d2fe1f2ef86bd7d9c2b695368aa27ced42f84f77 (patch) | |
tree | b6b029e3cf8dacc4eb75ab967ef7147a5d4997d9 /src/vm/util.cpp | |
parent | 9f74aff5752c03aab5f03c1b529f6faf6648cb90 (diff) | |
download | coreclr-d2fe1f2ef86bd7d9c2b695368aa27ced42f84f77.tar.gz coreclr-d2fe1f2ef86bd7d9c2b695368aa27ced42f84f77.tar.bz2 coreclr-d2fe1f2ef86bd7d9c2b695368aa27ced42f84f77.zip |
Add GDB JIT support for source line debug information.
Diffstat (limited to 'src/vm/util.cpp')
-rw-r--r-- | src/vm/util.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/vm/util.cpp b/src/vm/util.cpp index 7a05624113..703564e2f2 100644 --- a/src/vm/util.cpp +++ b/src/vm/util.cpp @@ -3359,6 +3359,10 @@ void InitializeClrNotifications() #pragma optimize("", off) #endif // _MSC_VER +#if defined(FEATURE_GDBJIT) +#include "gdbjit.h" +#endif // FEATURE_GDBJIT + // called from the runtime void DACNotify::DoJITNotification(MethodDesc *MethodDescPtr) { @@ -3370,7 +3374,9 @@ void DACNotify::DoJITNotification(MethodDesc *MethodDescPtr) MODE_PREEMPTIVE; } CONTRACTL_END; - +#if defined(FEATURE_GDBJIT) && defined(FEATURE_PAL) && !defined(CROSSGEN_COMPILE) + NotifyGdb::MethodCompiled(MethodDescPtr); +#endif TADDR Args[2] = { JIT_NOTIFICATION, (TADDR) MethodDescPtr }; DACNotifyExceptionHelper(Args, 2); } @@ -3386,6 +3392,9 @@ void DACNotify::DoJITDiscardNotification(MethodDesc *MethodDescPtr) } CONTRACTL_END; +#if defined(FEATURE_GDBJIT) && defined(FEATURE_PAL) && !defined(CROSSGEN_COMPILE) + NotifyGdb::MethodDropped(MethodDescPtr); +#endif TADDR Args[2] = { JIT_DISCARD_NOTIFICATION, (TADDR) MethodDescPtr }; DACNotifyExceptionHelper(Args, 2); } |