diff --git a/include/exec/gdbstub.h b/include/exec/gdbstub.h index 79e47a024e..75eb4d9c36 100644 --- a/include/exec/gdbstub.h +++ b/include/exec/gdbstub.h @@ -6,6 +6,7 @@ typedef struct GDBFeature { const char *xml; const char *name; const char * const *regs; + int base_reg; int num_regs; } GDBFeature; diff --git a/scripts/feature_to_c.py b/scripts/feature_to_c.py index 1329695ad0..a52cd2e9ec 100644 --- a/scripts/feature_to_c.py +++ b/scripts/feature_to_c.py @@ -102,6 +102,7 @@ def writeliteral(indent, bytes): sys.stdout.write(',\n') sys.stdout.write( ' },\n') + sys.stdout.write(f' .base_reg = {base_reg},\n') sys.stdout.write(f' .num_regs = {num_regs},\n') sys.stdout.write( ' },\n')