gdbserver.py:add x86_64 arch

Add x86_64 support, we can use it to analysis of x86_64 crashes

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
liwenxiang1
2024-12-23 16:15:15 +08:00
committed by Xiang Xiao
parent 73aa7391a9
commit 9d5e83b411
+25
View File
@@ -63,6 +63,31 @@ logger = logging.getLogger()
# Registers with multiple convenient names can have multiple entries here, one
# for each name and with the same index.
reg_table = {
"x86_64": {
"RAX": 0,
"RBX": 1,
"RCX": 2,
"RDX": 3,
"RSI": 4,
"RDI": 5,
"RBP": 6,
"FSP": 7,
"R8": 8,
"R9": 9,
"R10": 10,
"R11": 11,
"R12": 12,
"R13": 13,
"R14": 14,
"R15": 15,
"RIP": 16,
"RFLAGS": 17,
"CS": 18,
"SS": 19,
"DS": 20,
"ES": 21,
"FS": 22,
},
"arm": {
"R0": 0,
"R1": 1,