« Previous | Next » 

Revision 35143f01

ID35143f0164e6933a85c7c2b8a89a040d881a9151

Added by Andreas Färber over 10 years ago

gdbstub: Fix gdb_register_coprocessor() register counting

Commit a0e372f0c49ac01faeaeb73a6e8f50e8ac615f34 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 <>
Cc: (stable-1.6)
Tested-by: Aneesh Kumar K.V <>
Tested-by: Max Filippov <>
Tested-by: Peter Maydell <>
Signed-off-by: Andreas Färber <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences