natNormalBreakpoint.cc 792 B

1234567891011121314151617181920212223242526272829303132
  1. // natNormalBreakpoint.cc - C++ side of NormalBreakpoint
  2. /* Copyright (C) 2007 Free Software Foundation
  3. This file is part of libgcj.
  4. This software is copyrighted work licensed under the terms of the
  5. Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
  6. details. */
  7. #include <config.h>
  8. #include <gcj/cni.h>
  9. #include <java-interp.h>
  10. #include <jvmti.h>
  11. #include "jvmti-int.h"
  12. #include <gnu/gcj/jvmti/NormalBreakpoint.h>
  13. #include <java/lang/Thread.h>
  14. void
  15. gnu::gcj::jvmti::NormalBreakpoint::execute ()
  16. {
  17. using namespace ::java::lang;
  18. Thread *thread = Thread::currentThread ();
  19. JNIEnv *jni_env = _Jv_GetCurrentJNIEnv ();
  20. JvAssert (JVMTI_REQUESTED_EVENT (Breakpoint));
  21. _Jv_JVMTI_PostEvent (JVMTI_EVENT_BREAKPOINT, thread, jni_env,
  22. method, location);
  23. }