From 7f101ba5468b6cb2c6f2d5837dc060b072aa3dc0 Mon Sep 17 00:00:00 2001 From: Vitaly Bogdanov Date: Mon, 16 Jan 2023 18:40:08 +0300 Subject: [PATCH] Add required A0 register into x86 register profile provided by GDB ##debug --- shlr/gdb/src/gdbclient/xml.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shlr/gdb/src/gdbclient/xml.c b/shlr/gdb/src/gdbclient/xml.c index 16dcbf5353..861bce304b 100644 --- a/shlr/gdb/src/gdbclient/xml.c +++ b/shlr/gdb/src/gdbclient/xml.c @@ -294,6 +294,7 @@ static int gdbr_parse_target_xml(libgdbr_t *g, char *xml_data, ut64 len) { case 32: if (!(profile = r_str_prepend (profile, "=PC eip\n" + "=A0 eax\n" "=SP esp\n" "=BP ebp\n"))) { goto exit_err; @@ -302,6 +303,7 @@ static int gdbr_parse_target_xml(libgdbr_t *g, char *xml_data, ut64 len) { case 64: if (!(profile = r_str_prepend (profile, "=PC rip\n" + "=A0 rax\n" "=SP rsp\n" "=BP rbp\n"))) { goto exit_err;