summaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/jvmti/natNormalBreakpoint.cc
blob: be382408c8d5e94bdf06b85e9a2e40016c1e697d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// natNormalBreakpoint.cc - C++ side of NormalBreakpoint

/* Copyright (C) 2007  Free Software Foundation

   This file is part of libgcj.

This software is copyrighted work licensed under the terms of the
Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
details.  */

#include <config.h>
#include <gcj/cni.h>
#include <java-interp.h>
#include <jvmti.h>
#include "jvmti-int.h"

#include <gnu/gcj/jvmti/NormalBreakpoint.h>
#include <java/lang/Thread.h>

void
gnu::gcj::jvmti::NormalBreakpoint::execute ()
{
  using namespace ::java::lang;

  Thread *thread = Thread::currentThread ();
  JNIEnv *jni_env = _Jv_GetCurrentJNIEnv ();
      
  JvAssert (JVMTI_REQUESTED_EVENT (Breakpoint));
  _Jv_JVMTI_PostEvent (JVMTI_EVENT_BREAKPOINT, thread, jni_env,
		       method, location);
}