Skip to contentSkip to conversation

Support gdbstub qXfer:spaces features.

PATCH New Alexander Barabash 1 participant 1 message Jan 7, 2013 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support gdbstub qXfer:spaces features.

Support qXfer:spaces:read and qXfer:spaces:write. These gdbstub features allow GDB to access target's hardware registers.

---
 Makefile.target |    1 +
 gdbstub.c       |  176 ++++++++++++++++++++++-
 xfer-spaces.c   |  419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 xfer-spaces.h   |   74 ++++++++++
 4 files changed, 667 insertions(+), 3 deletions(-)
 create mode 100644 xfer-spaces.c
 create mode 100644 xfer-spaces.h
Makefile.target +1 -0
index 5bfa4960..361ef2b 100644
@@ -109,6 +109,7 @@ CONFIG_NO_GET_MEMORY_MAPPING = $(if $(subst n,,$(CONFIG_HAVE_GET_MEMORY_MAPPING)
 CONFIG_NO_CORE_DUMP = $(if $(subst n,,$(CONFIG_HAVE_CORE_DUMP)),n,y)
 
 obj-y += arch_init.o cpus.o monitor.o gdbstub.o balloon.o ioport.o
+obj-y += xfer-spaces.o
 obj-y += hw/
 obj-$(CONFIG_KVM) += kvm-all.o
 obj-$(CONFIG_NO_KVM) += kvm-stub.o
gdbstub.c +173 -3

218 lines not on this page · raw message

xfer-spaces.c new file +419 -0

419 lines not on this page · raw message

xfer-spaces.h new file +74 -0

74 lines not on this page · raw message

Signature · 1 line
1.7.9.5