src/share/tools/hsdis/hsdis.h
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/tools/hsdis/hsdis.h	Thu Sep 17 16:09:20 2009
--- new/src/share/tools/hsdis/hsdis.h	Thu Sep 17 16:09:20 2009

*** 23,33 **** --- 23,36 ---- */ /* decode_instructions -- dump a range of addresses as native instructions This implements the protocol required by the HotSpot PrintAssembly option. ! The starting and ending addresses are within the current process's address space. ! The start_va, end_va is the virtual address the region of memory to + disasemble and buffer contains the instructions to decode, + Disassembling instructions in the current address space is done by + having start_va == buffer. The option string, if not empty, is interpreted by the disassembler implementation. The printf callback is 'fprintf' or any other workalike. It is called as (*printf_callback)(printf_stream, "some format...", some, format, args).
*** 46,56 **** --- 49,60 ---- */ extern #ifdef DLL_EXPORT DLL_EXPORT #endif ! void* decode_instructions(void* start, void* end, ! void* decode_instructions_virtual(uintptr_t start_va, uintptr_t end_va, + unsigned char* buffer, uintptr_t length, void* (*event_callback)(void*, const char*, void*), void* event_stream, int (*printf_callback)(void*, const char*, ...), void* printf_stream, const char* options);
*** 57,67 **** --- 61,72 ---- /* convenience typedefs */ typedef void* (*decode_instructions_event_callback_ftype) (void*, const char*, void*); typedef int (*decode_instructions_printf_callback_ftype) (void*, const char*, ...); ! typedef void* (*decode_instructions_ftype) (void* start, void* end, ! typedef void* (*decode_instructions_ftype) (uintptr_t start_va, uintptr_t end_va, + unsigned char* buffer, uintptr_t length, decode_instructions_event_callback_ftype event_callback, void* event_stream, decode_instructions_printf_callback_ftype printf_callback, void* printf_stream, const char* options);

src/share/tools/hsdis/hsdis.h
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File