Add required A0 register into x86 register profile provided by GDB ##debug

This commit is contained in:
Vitaly Bogdanov 2023-01-16 18:40:08 +03:00
parent 77c19aa18d
commit 7f101ba546

View File

@ -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;