23 8, 8, 8, 8, 8, 8, 8, 8,
24 8, 8, 8, 8, 8, 8, 8, 8,
28 10, 10, 10, 10, 10, 10, 10, 10,
29 8, 8, 8, 8, 8, 8, 8, 8
38 case RAX:
return &
ctx->Rax;
39 case RBX:
return &
ctx->Rbx;
40 case RCX:
return &
ctx->Rcx;
41 case RDX:
return &
ctx->Rdx;
42 case RSP:
return &
ctx->Rsp;
43 case RBP:
return &
ctx->Rbp;
44 case RSI:
return &
ctx->Rsi;
45 case RDI:
return &
ctx->Rdi;
46 case RIP:
return &
ctx->Rip;
47 case R8:
return &
ctx->R8;
48 case R9:
return &
ctx->R9;
49 case R10:
return &
ctx->R10;
50 case R11:
return &
ctx->R11;
51 case R12:
return &
ctx->R12;
52 case R13:
return &
ctx->R13;
53 case R14:
return &
ctx->R14;
54 case R15:
return &
ctx->R15;
56 case CS:
return &
ctx->SegCs;
57 case DS:
return &
ctx->SegSs;
58 case ES:
return &
ctx->SegEs;
59 case FS:
return &
ctx->SegFs;
60 case GS:
return &
ctx->SegGs;
61 case SS:
return &
ctx->SegSs;
71 static const void* NullValue =
NULL;
80 case RAX:
return &TrapFrame->
Rax;
81 case RBX:
return &TrapFrame->
Rbx;
82 case RCX:
return &TrapFrame->
Rcx;
83 case RDX:
return &TrapFrame->
Rdx;
84 case RSP:
return &TrapFrame->
Rsp;
85 case RBP:
return &TrapFrame->
Rbp;
86 case RSI:
return &TrapFrame->
Rsi;
87 case RDI:
return &TrapFrame->
Rdi;
88 case RIP:
return &TrapFrame->
Rip;
89 case R8:
return &TrapFrame->
R8;
90 case R9:
return &TrapFrame->
R9;
91 case R10:
return &TrapFrame->
R10;
92 case R11:
return &TrapFrame->
R11;
94 case CS:
return &TrapFrame->
SegCs;
95 case DS:
return &TrapFrame->
SegSs;
96 case ES:
return &TrapFrame->
SegEs;
97 case FS:
return &TrapFrame->
SegFs;
98 case GS:
return &TrapFrame->
SegGs;
99 case SS:
return &TrapFrame->
SegSs;
146 CHAR RegisterStr[17];
158 for (
i = 0;
i < 24;
i++)
162 RegisterStr[
size] = 0;
180 if (DbgThread ==
NULL)
187 for (
i = 0;
i < 24;
i++)
191 RegisterStr[
size] = 0;
205 RegisterStr[
size] =
'x';
207 RegisterStr[
size] =
'x';
239 if (DbgThread ==
NULL)
258 KDDBGPRINT(
"KDDBG : Sending registers as memory.\n");
static void * thread_to_reg(PETHREAD Thread, enum reg_name reg_name)
KDSTATUS gdb_send_registers(void)
static const unsigned char reg_size[]
static void * ctx_to_reg(CONTEXT *ctx, enum reg_name name)
KDSTATUS gdb_send_register(void)
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
KDSTATUS send_gdb_memory(_In_ const VOID *Buffer, _In_ size_t Length)
void send_gdb_partial_packet(_In_ const CHAR *Buffer)
void start_gdb_packet(void)
KDSTATUS finish_gdb_packet(void)
KDSTATUS send_gdb_packet(_In_ const CHAR *Buffer)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
DBGKD_ANY_WAIT_STATE_CHANGE CurrentStateChange
FORCEINLINE HANDLE gdb_tid_to_handle(UINT_PTR Tid)
PETHREAD find_thread(_In_ UINT_PTR Pid, _In_ UINT_PTR Tid)
HANDLE NTAPI PsGetThreadId(IN PETHREAD Thread)