gcc/libjava/gnu/gcj/jvmti/Breakpoint.h
Keith Seitz 02b1e78caf Breakpoint.java: Make abstract.
* gnu/gcj/jvmti/Breakpoint.java: Make abstract.
        (method): Change from private to protected.
        (location): Likewise.
        (Breakpoint): Change argument list to take only integer type.
        Add default constructor.
        (initialize_native): Renamed to ...
        (_save_insn): ... this to make function more explicit.
        (execute): New method.
        * gnu/gcj/jvmti/Breakpoint.h: Regenerate.
        * gnu/gcj/jvmti/natBreakpoint.cc (initialize_native): Rename to...
        (_save_insn): ... this.
        (install): Save the original instruction.
        * gnu/gcj/jvmti/NormalBreakpoint.java: New file.
        * gnu/gcj/jvmti/NormalBreakpoint.h: New file.
        * gnu/gcj/jvmti/natNormalBreakpoint.cc: New file.
        * gnu/gcj/jvmti/BreakpointManager.java (newBreakpoint):
        Instantiate a NormalBreakpoint instead of Breakpoint.
        * interpret-run.cc (insn_breakpoint): Remove breakpoint actions
        and call Breakpoint.execute to do them.
        * classpath/lib/gnu/gcj/jvmti/Breakpoint.class: Regenerate.
        * classpath/lib/gnu/gcj/jvmti/BreakpointManager.class: Likewise.
        * classpath/lib/gnu/gcj/jvmti/NormalBreakpoint.class: New file.
        * sources.am: Regenerate.
        * Makefile.am (nat_source_files): Add natNormalBreakpoint.cc.
        * Makefile.in: Regenerated.

From-SVN: r125834
2007-06-19 00:10:10 +00:00

56 lines
1.1 KiB
C++

// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __gnu_gcj_jvmti_Breakpoint__
#define __gnu_gcj_jvmti_Breakpoint__
#pragma interface
#include <java/lang/Object.h>
extern "Java"
{
namespace gnu
{
namespace gcj
{
class RawDataManaged;
namespace jvmti
{
class Breakpoint;
}
}
}
}
#ifdef DIRECT_THREADED
void _Jv_RewriteBreakpointInsn (jmethodID, jlocation, pc_t);
#endif
class gnu::gcj::jvmti::Breakpoint : public ::java::lang::Object
{
#ifdef DIRECT_THREADED
friend void (::_Jv_RewriteBreakpointInsn (jmethodID, jlocation, pc_t));
#endif
public:
Breakpoint(jlong, jlong);
Breakpoint();
private:
void _save_insn();
public:
virtual void install();
virtual void remove();
virtual ::gnu::gcj::RawDataManaged * getInsn();
virtual void execute() = 0;
public: // actually protected
jlong __attribute__((aligned(__alignof__( ::java::lang::Object)))) method;
jlong location;
private:
::gnu::gcj::RawDataManaged * data;
public:
static ::java::lang::Class class$;
};
#endif // __gnu_gcj_jvmti_Breakpoint__