base: Refactor the GDB code.
authorGabe Black <gabeblack@google.com>
Thu, 11 May 2017 21:11:28 +0000 (14:11 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 18 May 2017 16:48:09 +0000 (16:48 +0000)
commit41ab3e6e7e9b5a5f4427949f9a981cdf2186c88a
tree1b02f07e240b6207c83a55cc297dc0ab599ac85a
parent9aadcc797263fc268fdd9f921ddffa473f56d78a
base: Refactor the GDB code.

The new version modularizes the implementation of the various commands,
gets rid of dynamic allocation of the register cache, fixes some small
style problems, and uses exceptions to simplify error handling internal to
the GDB stub.

Change-Id: Iff3548373ce4adfb99106a810f5713b769df89b2
Reviewed-on: https://gem5-review.googlesource.com/3280
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Boris Shingarov <shingarov@gmail.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
16 files changed:
src/arch/alpha/remote_gdb.cc
src/arch/alpha/remote_gdb.hh
src/arch/arm/remote_gdb.cc
src/arch/arm/remote_gdb.hh
src/arch/mips/remote_gdb.cc
src/arch/mips/remote_gdb.hh
src/arch/power/remote_gdb.cc
src/arch/power/remote_gdb.hh
src/arch/riscv/remote_gdb.cc
src/arch/riscv/remote_gdb.hh
src/arch/sparc/remote_gdb.cc
src/arch/sparc/remote_gdb.hh
src/arch/x86/remote_gdb.cc
src/arch/x86/remote_gdb.hh
src/base/remote_gdb.cc
src/base/remote_gdb.hh