[Bug 1869497] Re: x86_cpu_gdb_read_register segfaults when gdb requests registers

2020-03-29 Thread Matt Wilbur
** Changed in: qemu Assignee: (unassigned) => Matt Wilbur (mattwilbur) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1869497 Title: x86_cpu_gdb_read_register segfaults when gdb reque

[Bug 1869497] [NEW] x86_cpu_gdb_read_register segfaults when gdb requests registers

2020-03-28 Thread Matt Wilbur
Public bug reported: When attempting to attach to the gdbstub, a segfault occurs. I traced this down to a problem in a call to gdb_get_reg16 where the mem_buf was being treated like a uint8_t* instead of a GByteArray. The buffer passed to gdb_get_reg16 ends up passing an invalid GByteArray point