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

src/share/tools/hsdis/hsdis.h

Print this page

        

*** 23,33 **** */ /* 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 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). --- 23,36 ---- */ /* decode_instructions -- dump a range of addresses as native instructions This implements the protocol required by the HotSpot PrintAssembly option. ! 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 **** */ extern #ifdef DLL_EXPORT DLL_EXPORT #endif ! void* decode_instructions(void* start, void* end, void* (*event_callback)(void*, const char*, void*), void* event_stream, int (*printf_callback)(void*, const char*, ...), void* printf_stream, const char* options); --- 49,60 ---- */ extern #ifdef DLL_EXPORT DLL_EXPORT #endif ! 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 **** /* 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, decode_instructions_event_callback_ftype event_callback, void* event_stream, decode_instructions_printf_callback_ftype printf_callback, void* printf_stream, const char* options); --- 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) (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