HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
gdbstub: Fix gdb_register_coprocessor() register counting
Commit a0e372f reorganized the register counting for GDB. While it seems correct not to let the total number of registers skyrocket in an SMP scenario through a static variable, the distinction between total register count and 'g' packet register count (last_reg vs. num_g_regs) got lost among the way. Fix this by introducing CPUState::gdb_num_g_regs and using that in gdb_handle_packet(). Reported-by: Aneesh Kumar K.V <email@example.com> Cc: firstname.lastname@example.org (stable-1.6) Tested-by: Aneesh Kumar K.V <email@example.com> Tested-by: Max Filippov <firstname.lastname@example.org> Tested-by: Peter Maydell <email@example.com> Signed-off-by: Andreas Färber <firstname.lastname@example.org>
- Loading branch information...
Showing with 7 additions and 3 deletions.