src/vm/vm.c (vm_create): rename jvmti function calls
src/cacao/cacao.c (main): rename jvmti function calls
src/native/jni.c (GetEnv): rename jvmti function calls. jvmti version changed to JVMTI_VERSION_INTERFACE_JVMTI
src/native/vm/VMVirtualMachine.c (getAllLoadedClassesCount): (Samuel Vinson) implemented.
(getAllLoadedClassesCount): jvmti Deallocate call added. (sv): CallObjectMethod fix
(getAllClassMethods): (Samuel Vinson) implemented.
(getClassMethod): (Samuel Vinson) implemented.
src/native/jvmti/jvmti.h: added JVMTI_VERSION interface and mask
src/native/jvmti/cacaodbgserver.h: msg queue/shared mem related things removed. gdb related defines added.
src/native/jvmti/dbg.h: remove ptrace related things
src/native/jvmti/cacaodbg.c change setsysbrkpt name to jvmti_set_system_breakpoint, addbrkpt to jvmti_add_breakpoint, allthreads to jvmti_get_all_threads
(jvmti_cacao_debug_init): new function where fork/exec of cacaodbgserver takes place
(jvmti_set_system_breakpoint): added functionality for brkpt delete and asm label for cacaodbgserver support
(jvmti_cacaodbgserver_quit): new function for killing cacaodbgserver properly
(jvmti_cacao_generic_breakpointhandler): new function. This is the entry point for every breakpointhandler and start for a new jvmti event
(jvmti_cacao_debug_init): new function for starting up cacaodbgserver process.
src/native/jvmti/VMjdwp.c (jvmti_VMjdwpInit): function renamed
src/native/jvmti/Makefile.am: delete dbg.c. (sv) add compile/install support for cacaodbgserver.
src/native/jvmti/cacaodbg.h: breakpoint counter added to struct _brkpt. change setsysbrkpt name to jvmti_set_system_breakpoint, addbrkpt to jvmti_add_breakpoint, allthreads to jvmti_get_all_threads, fireEvent to jvmti_fireEvent, agentload to jvmti_agentload agentunload to jvmti_agentunload, getcurrentthread to jvmti_get_current_thread, set_jvmti_phase to jvmti_set_phase, new_jvmtienv to jvmti_new_environment, VMjdwpinit to jvmti_VMjdwpInit. added breakpoint table constants. removed global jdwp, jvmti, suspend, transport, agentarg variables
src/native/jvmti/jvmti.c all jvmti-environment function changed to static functions. execcallback renamed to execute_callback. fireEvent renamed to jvmti_fireEvent.
(execute_callback): add phase checks
(GetClassMethods): bugfix in copying jmethodIDs
(DisposeEnvironment): relocate work to jvmti_cacaodbgserver_quit
(jvmti_new_environment) : relocate forking new process to jvmti_cacao_debug_init
(CHECK_ADD_CAPABILITY): bugfix in adding capabilities
(GetClassMethods): bugfix coping methodinfo pointers
(SetEventNotificationMode): setsysbrkpt calls added.
rename jvmti function names.
src/native/jvmti/cacaodbgserver.c changed to support gdb insted of using ptrace directly.
(getchildprocptrace): removed
(waitloop): removed
(startgdb): new function. start a new gdb session.
(getgdboutput): new helper function for getting gdb output.
(dataevaluate): new helper function for getting value for a given expression
(commonbreakpointhandler): new function which handles SIGTRAPs and gdb breakpoint hits.
(controlloop) : new function handle communication with gdb
(main): removed old code. added calls to startgdb and controlloop
src/native/jvmti/dbg.c removed
src/threads/native/threads.h: removed threads_set_current_threadobject. added jvmti_get_threads_breakpoints
src/threads/native/threads.c: (threads_startup_thread) add thread start/end asm lables
(threads_set_current_threadobject): removed jvmti thread start support.
(jvmti_get_threads_breakpoints) new function that gets addresses of asm lables.
src/threads/native/lock.h: added definition of lock_global_pool_lock and lock_global_pool
17 files changed: