gdbstub: Implement qemu physical memory mode
commitab4752ec8d9b0b19ab80915016b739350418a078
authorJon Doron <arilou@gmail.com>
Wed, 29 May 2019 06:41:48 +0000 (29 09:41 +0300)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 12 Jun 2019 16:53:23 +0000 (12 17:53 +0100)
treec4f58c4ec8f7328a175a6b99dac5e82c2716227a
parent3f1cbac73a441c518e27184bf24bc56796f4ab5a
gdbstub: Implement qemu physical memory mode

Add a new query/set which changes the memory GDB sees to physical memory
only.

gdb> maint packet qqemu.PhyMemMode
will reply the current phy_mem_mode state (1 for enabled, 0 for disabled)
gdb> maint packet Qqemu.PhyMemMode:1
Will make GDB read/write only to physical memory, set to 0 to disable

Signed-off-by: Jon Doron <arilou@gmail.com>
Message-Id: <20190529064148.19856-21-arilou@gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
gdbstub.c