ReactOS 0.4.16-dev-289-g096a551
|
#include <ntifs.h>
#include <halfuncs.h>
#include <stdio.h>
#include <arc/arc.h>
#include <inttypes.h>
#include <windbgkd.h>
#include <kddll.h>
#include <pstypes.h>
Go to the source code of this file.
Macros | |
#define | NOEXTAPI |
#define | MONOPROCESS 1 |
#define | KDDBGPRINT(...) |
#define | gdb_pid_to_handle gdb_tid_to_handle |
#define | handle_to_gdb_pid handle_to_gdb_tid |
Typedefs | |
typedef BOOLEAN(* | KDP_SEND_HANDLER) (_In_ ULONG PacketType, _In_ PSTRING MessageHeader, _In_ PSTRING MessageData) |
typedef KDSTATUS(* | KDP_MANIPULATESTATE_HANDLER) (_Out_ DBGKD_MANIPULATE_STATE64 *State, _Out_ PSTRING MessageData, _Out_ PULONG MessageLength, _Inout_ PKD_CONTEXT KdContext) |
#define gdb_pid_to_handle gdb_tid_to_handle |
#define handle_to_gdb_pid handle_to_gdb_tid |
typedef KDSTATUS(* KDP_MANIPULATESTATE_HANDLER) (_Out_ DBGKD_MANIPULATE_STATE64 *State, _Out_ PSTRING MessageData, _Out_ PULONG MessageLength, _Inout_ PKD_CONTEXT KdContext) |
KDSTATUS ContinueManipulateStateHandler | ( | _Out_ DBGKD_MANIPULATE_STATE64 * | State, |
_Out_ PSTRING | MessageData, | ||
_Out_ PULONG | MessageLength, | ||
_Inout_ PKD_CONTEXT | KdContext | ||
) |
Definition at line 213 of file kdpacket.c.
Referenced by handle_gdb_c(), and handle_gdb_s().
Definition at line 16 of file utils.c.
Referenced by find_thread(), handle_gdb_query(), handle_gdb_read_mem(), and handle_gdb_write_mem().
Definition at line 41 of file utils.c.
Referenced by gdb_send_register(), gdb_send_registers(), handle_gdb_query(), handle_gdb_read_mem(), handle_gdb_thread_alive(), handle_gdb_write_mem(), xmlGetThreadId(), xmlIsMainThread(), xmlMutexLock(), xmlMutexUnlock(), xmlRMutexLock(), and xmlRMutexUnlock().
Definition at line 74 of file gdb_send.c.
Referenced by gdb_send_debug_io(), gdb_send_register(), gdb_send_registers(), handle_gdb_query(), send_gdb_memory(), and send_gdb_packet().
KDSTATUS gdb_receive_and_interpret_packet | ( | _Out_ DBGKD_MANIPULATE_STATE64 * | State, |
_Out_ PSTRING | MessageData, | ||
_Out_ PULONG | MessageLength, | ||
_Inout_ PKD_CONTEXT | KdContext | ||
) |
Definition at line 994 of file gdb_input.c.
Referenced by KdReceivePacket().
KDSTATUS NTAPI gdb_receive_packet | ( | _Inout_ PKD_CONTEXT | KdContext | ) |
Definition at line 31 of file gdb_receive.c.
Referenced by gdb_receive_and_interpret_packet().
Definition at line 168 of file gdb_send.c.
Referenced by handle_gdb_query(), and send_kd_debug_io().
Definition at line 197 of file gdb_send.c.
Referenced by gdb_receive_and_interpret_packet(), and send_kd_state_change().
Definition at line 219 of file amd64_sup.c.
Referenced by gdb_receive_and_interpret_packet().
Definition at line 144 of file amd64_sup.c.
Referenced by gdb_receive_and_interpret_packet(), and send_kd_state_manipulate().
FORCEINLINE HANDLE gdb_tid_to_handle | ( | UINT_PTR | Tid | ) |
Definition at line 35 of file kdgdb.h.
Referenced by find_thread(), gdb_send_register(), gdb_send_registers(), handle_gdb_read_mem(), and handle_gdb_write_mem().
FORCEINLINE UINT_PTR handle_to_gdb_tid | ( | HANDLE | Handle | ) |
Definition at line 41 of file kdgdb.h.
Referenced by FirstSendHandler(), gdb_send_exception(), handle_gdb_query(), and send_kd_state_change().
Definition at line 15 of file gdb_receive.c.
Referenced by gdb_receive_packet(), gdb_send_register(), hex_to_address(), and hex_to_tid().
FORCEINLINE VOID InitManipulateFromStateChange | ( | _In_ ULONG | ApiNumber, |
_In_ const DBGKD_ANY_WAIT_STATE_CHANGE * | StateChange, | ||
_Out_ DBGKD_MANIPULATE_STATE64 * | Manipulate | ||
) |
Definition at line 343 of file kdcom.c.
Referenced by KdReceivePacket().
Definition at line 299 of file kdcom.c.
Referenced by gdb_receive_packet(), and KdpPollBreakIn().
Definition at line 231 of file gdb_send.c.
Referenced by ReadMemorySendHandler(), WriteBreakPointSendHandler(), and WriteMemorySendHandler().
Definition at line 100 of file gdb_send.c.
Referenced by gdb_receive_and_interpret_packet(), gdb_send_exception(), gdb_send_register(), handle_gdb_c(), handle_gdb_insert_breakpoint(), handle_gdb_query(), handle_gdb_read_mem(), handle_gdb_remove_breakpoint(), handle_gdb_set_thread(), handle_gdb_thread_alive(), handle_gdb_v(), handle_gdb_write_mem(), RestoreBreakPointSendHandler(), send_gdb_ntstatus(), WriteBreakPointSendHandler(), and WriteMemorySendHandler().
Definition at line 108 of file gdb_send.c.
Referenced by handle_gdb_query().
Definition at line 140 of file gdb_send.c.
Referenced by send_gdb_memory().
Definition at line 60 of file gdb_send.c.
Referenced by gdb_send_debug_io(), gdb_send_register(), gdb_send_registers(), handle_gdb_query(), send_gdb_packet(), and send_gdb_partial_memory().
KDSTATUS SetContextManipulateHandler | ( | _Out_ DBGKD_MANIPULATE_STATE64 * | State, |
_Out_ PSTRING | MessageData, | ||
_Out_ PULONG | MessageLength, | ||
_Inout_ PKD_CONTEXT | KdContext | ||
) |
Definition at line 107 of file kdpacket.c.
Referenced by handle_gdb_c(), and handle_gdb_s().
Definition at line 52 of file gdb_send.c.
Referenced by gdb_send_debug_io(), gdb_send_register(), gdb_send_registers(), handle_gdb_query(), send_gdb_memory(), and send_gdb_packet().
|
extern |
Definition at line 29 of file kdpacket.c.
Referenced by gdb_send_register(), gdb_send_registers(), GetContextSendHandler(), handle_gdb_c(), handle_gdb_s(), and SetContextManipulateHandler().
|
extern |
Definition at line 28 of file kdpacket.c.
Referenced by ContinueManipulateStateHandler(), find_thread(), FirstSendHandler(), gdb_send_exception(), gdb_send_register(), gdb_send_registers(), GetContextManipulateHandler(), GetVersionManipulateStateHandler(), handle_gdb_c(), handle_gdb_insert_breakpoint(), handle_gdb_query(), handle_gdb_read_mem(), handle_gdb_remove_breakpoint(), handle_gdb_write_mem(), send_kd_state_change(), and SetContextManipulateHandler().
|
extern |
Definition at line 20 of file gdb_input.c.
Referenced by FirstSendHandler(), gdb_send_register(), gdb_send_registers(), handle_gdb_read_mem(), handle_gdb_set_thread(), handle_gdb_write_mem(), ReadMemorySendHandler(), send_kd_state_change(), and WriteMemorySendHandler().
|
extern |
Definition at line 21 of file gdb_input.c.
Referenced by FirstSendHandler(), gdb_send_register(), gdb_send_registers(), handle_gdb_read_mem(), handle_gdb_set_thread(), handle_gdb_write_mem(), ReadMemorySendHandler(), send_kd_state_change(), and WriteMemorySendHandler().
|
extern |
Definition at line 11 of file gdb_receive.c.
Referenced by gdb_receive_and_interpret_packet(), gdb_receive_packet(), gdb_send_register(), handle_gdb_insert_breakpoint(), handle_gdb_query(), handle_gdb_read_mem(), handle_gdb_remove_breakpoint(), handle_gdb_set_thread(), handle_gdb_thread_alive(), handle_gdb_v(), and handle_gdb_write_mem().
Definition at line 11 of file gdb_send.c.
Referenced by exception_code_to_gdb(), finish_gdb_packet(), gdb_send_debug_io(), gdb_send_registers(), and send_gdb_partial_memory().
|
extern |
Definition at line 21 of file kdpacket.c.
Referenced by KdInitSystem(), KdUpdateDataBlock(), and KeBugCheckWithTf().
|
extern |
Definition at line 26 of file kdpacket.c.
Referenced by ContinueManipulateStateHandler(), FirstSendHandler(), GetContextManipulateHandler(), GetVersionManipulateStateHandler(), GetVersionSendHandler(), handle_gdb_c(), handle_gdb_s(), KdReceivePacket(), ReadMemorySendHandler(), RestoreBreakPointSendHandler(), send_kd_state_change(), SetContextManipulateHandler(), WriteBreakPointSendHandler(), and WriteMemorySendHandler().
|
extern |
Definition at line 25 of file kdpacket.c.
Referenced by ContinueManipulateStateHandler(), FirstSendHandler(), GetContextManipulateHandler(), GetContextSendHandler(), GetVersionManipulateStateHandler(), GetVersionSendHandler(), handle_gdb_insert_breakpoint(), handle_gdb_read_mem(), handle_gdb_remove_breakpoint(), handle_gdb_write_mem(), KdSendPacket(), ReadMemorySendHandler(), RestoreBreakPointSendHandler(), SetContextManipulateHandler(), SetContextSendHandler(), WriteBreakPointSendHandler(), and WriteMemorySendHandler().
|
extern |
Definition at line 20 of file kdpacket.c.
Referenced by GetVersionSendHandler().
|
extern |
Definition at line 23 of file kdpacket.c.
Referenced by GetModuleFileNameW(), GetVersionSendHandler(), handle_gdb_query(), LdrQueryProcessModuleInformationEx(), MmCallDllInitialize(), PeLdrAllocateDataTableEntry(), PeLdrCheckForLoadedDll(), PeLdrpBindImportName(), PeLdrpLoadAndScanReferencedDll(), PeLdrpScanImportAddressTable(), PeLdrScanImportDescriptorTable(), RtlPcToFileHeader(), and UserpGetClientFileName().
|
extern |
Definition at line 22 of file kdpacket.c.
Referenced by find_process(), find_thread(), GetVersionSendHandler(), handle_gdb_query(), handle_gdb_read_mem(), handle_gdb_write_mem(), ReadMemorySendHandler(), and WriteMemorySendHandler().
|
extern |
Definition at line 30 of file kdpacket.c.
Referenced by find_process(), find_thread(), FirstSendHandler(), and QSI_DEF().
|
extern |
Definition at line 31 of file kdpacket.c.
Referenced by find_thread(), and FirstSendHandler().