[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Qemu-arm] [PATCH 02/15] gdbstub: add multiprocess supp
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [Qemu-arm] [PATCH 02/15] gdbstub: add multiprocess support to '?' packets |
Date: |
Fri, 7 Sep 2018 20:42:25 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
Hi Luc,
On 9/1/18 9:46 AM, Luc Michel wrote:
[...]
> +static char *get_thread_id(const GDBState *s, CPUState *cpu,
> + char *buf, size_t buf_size)
To avoid confusion with 'int qemu_get_thread_id()' from "qemu/osdep.h",
can we use another name such gdb_fmt_thread_id() or
get_thread_id_string() or better?
> +{
> + if (s->multiprocess) {
> + snprintf(buf, buf_size, "p%02x.%02x",
> + gdb_get_cpu_pid(s, cpu), cpu_gdb_index(cpu));
> + } else {
> + snprintf(buf, buf_size, "%02x", cpu_gdb_index(cpu));
> +
extra newline ;)
> + }
> +
> + return buf;
> +}
- [Qemu-devel] [PATCH 00/15] gdbstub: support for the multiprocess extension, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 04/15] gdbstub: add multiprocess support to vCont packets, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 11/15] gdbstub: add support for vAttach packets, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 10/15] gdbstub: add support for extended mode packet, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 05/15] gdbstub: add multiprocess support to 'sC' packets, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 08/15] gdbstub: add multiprocess support to gdb_vm_state_change(), Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 07/15] gdbstub: add multiprocess support to Xfer:features:read:, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 02/15] gdbstub: add multiprocess support to '?' packets, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 03/15] gdbstub: add multiprocess support to 'H' and 'T' packets, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 01/15] gdbstub: introduce GDB processes, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 12/15] gdbstub: processes initialization on new peer connection, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 06/15] gdbstub: add multiprocess support to (f|s)ThreadInfo and ThreadExtraInfo, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 09/15] gdbstub: add multiprocess support to 'D' packets, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 15/15] arm/xlnx-zynqmp: put APUs and RPUs in separate GDB groups, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 13/15] gdbstub: gdb_set_stop_cpu: ignore request when process is not attached, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 14/15] gdbstub: add multiprocess extension support, Luc Michel, 2018/09/01