[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 45/45] windbg: implemented kd_api_get_context
From: |
Ladi Prosek |
Subject: |
Re: [Qemu-devel] [PATCH v3 45/45] windbg: implemented kd_api_get_context_ex and kd_api_set_context_ex |
Date: |
Tue, 28 Nov 2017 13:44:33 +0100 |
On Tue, Nov 21, 2017 at 3:11 PM, Mihail Abakumov
<address@hidden> wrote:
[...]
> diff --git a/windbgstub.c b/windbgstub.c
> index 36372c0ea5..3bcf6a8cbb 100755
> --- a/windbgstub.c
> +++ b/windbgstub.c
> @@ -224,6 +224,14 @@ static void
> windbg_process_manipulate_packet(ParsingContext *ctx)
> kd_api_query_memory(cpu, &ctx->data);
> break;
>
> + case DbgKdGetContextExApi:
> + kd_api_get_context_ex(cpu, &ctx->data);
> + break;
> +
> + case DbgKdSetContextExApi:
> + kd_api_set_context_ex(cpu, &ctx->data);
> + break;
> +
> default:
> kd_api_unsupported(cpu, &ctx->data);
> break;
> @@ -262,12 +270,12 @@ static void
> windbg_process_control_packet(ParsingContext *ctx)
>
> case PACKET_TYPE_KD_RESET:
> {
> - SizedBuf buf = kd_gen_load_symbols_sc(qemu_get_cpu(0));
> + windbg_send_control_packet(ctx->packet.PacketType);
> + windbg_state->ctrl_packet_id = INITIAL_PACKET_ID;
You didn't mention it in the cover email so I'd like to be sure. This
is what fixed the initial handshake so it works without -b now, is
that correct? Thanks!
> + SizedBuf buf = kd_gen_load_symbols_sc(qemu_get_cpu(0));
> windbg_send_data_packet(buf.data, buf.size,
> PACKET_TYPE_KD_STATE_CHANGE64);
> - windbg_send_control_packet(ctx->packet.PacketType);
> - windbg_state->ctrl_packet_id = INITIAL_PACKET_ID;
> SBUF_FREE(buf);
> break;
> }
>
- Re: [Qemu-devel] [PATCH v3 39/45] windbg: implemented kd_api_get_version, (continued)
- [Qemu-devel] [PATCH v3 40/45] windbg: implemented kd_api_read_msr and kd_api_write_msr, Mihail Abakumov, 2017/11/21
- [Qemu-devel] [PATCH v3 41/45] windbg: implemented kd_api_search_memory, Mihail Abakumov, 2017/11/21
- [Qemu-devel] [PATCH v3 42/45] windbg: implemented kd_api_fill_memory, Mihail Abakumov, 2017/11/21
- [Qemu-devel] [PATCH v3 43/45] windbg: implemented kd_api_query_memory, Mihail Abakumov, 2017/11/21
- [Qemu-devel] [PATCH v3 44/45] windbg: added new api functions, Mihail Abakumov, 2017/11/21
- [Qemu-devel] [PATCH v3 45/45] windbg: implemented kd_api_get_context_ex and kd_api_set_context_ex, Mihail Abakumov, 2017/11/21
- Re: [Qemu-devel] [PATCH v3 45/45] windbg: implemented kd_api_get_context_ex and kd_api_set_context_ex,
Ladi Prosek <=
- Re: [Qemu-devel] [PATCH v3 00/45] Windbg supporting, no-reply, 2017/11/21
- Re: [Qemu-devel] [PATCH v3 00/45] Windbg supporting, no-reply, 2017/11/22
- Re: [Qemu-devel] [PATCH v3 00/45] Windbg supporting, no-reply, 2017/11/22