src/vm/vm.c (vm_create): rename jvmti function calls
authormotse <none@none>
Tue, 23 May 2006 15:31:19 +0000 (15:31 +0000)
committermotse <none@none>
Tue, 23 May 2006 15:31:19 +0000 (15:31 +0000)
commit8a5fdb01a639c4a330fed2b1c90c08bbfb6d14a2
treece231f48e7f09e314ad054cd6e6a652528dd81b9
parent3b252aa22dbab2d1c727cff85cc405e44af54d32
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:
src/cacao/cacao.c
src/native/jni.c
src/native/jvmti/Makefile.am
src/native/jvmti/VMjdwp.c
src/native/jvmti/cacaodbg.c
src/native/jvmti/cacaodbg.h
src/native/jvmti/cacaodbgserver.c
src/native/jvmti/cacaodbgserver.h
src/native/jvmti/dbg.c [deleted file]
src/native/jvmti/dbg.h
src/native/jvmti/jvmti.c
src/native/jvmti/jvmti.h
src/native/vm/VMVirtualMachine.c
src/threads/native/lock.h
src/threads/native/threads.c
src/threads/native/threads.h
src/vm/vm.c