Werner Zeh has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36021 )
Change subject: x86 gdb: Extend GDB stub with a version information ......................................................................
x86 gdb: Extend GDB stub with a version information
Add GDB command "w" to get the current version of the implemented GDB stub in coreboot.
NOT FOR MERGE!!!
Change-Id: Ia9951ee4800e8bbf2e40a7b94de1cf3ef4c2dccd Signed-off-by: Werner Zeh werner.zeh@siemens.com --- M src/arch/x86/exception.c 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/36021/1
diff --git a/src/arch/x86/exception.c b/src/arch/x86/exception.c index 646e962..b1689cc 100644 --- a/src/arch/x86/exception.c +++ b/src/arch/x86/exception.c @@ -30,6 +30,8 @@ * At least NUM_REGBYTES*2 are needed for register packets */ #define BUFMAX 400 +/* Add a version string. */ +#define GDB_STUB_EXTENSION_VERSION "1.0" enum regnames { EAX = 0, ECX, EDX, EBX, ESP, EBP, ESI, EDI, PC /* also known as eip */, @@ -837,6 +839,10 @@ } else memcpy(out_buffer, "E07", 4); break; + case 'w': + memcpy(out_buffer, GDB_STUB_EXTENSION_VERSION, + sizeof(GDB_STUB_EXTENSION_VERSION)); + break; case 'z': /* z0AAAA,LLLL remove memory breakpoint */ /* z1AAAA,LLLL remove hardware breakpoint */ /* z2AAAA,LLLL remove write watchpoint */