添加gdb目标体系结构:aarch64

问题描述:

我试图调试android的Linux内核。我可以在android设备上运行gdbserver64并使用主机上的gdb连接到它。但是,当我尝试调试我收到此错误:添加gdb目标体系结构:aarch64

(gdb) target remote localhost:2345 
Remote debugging using localhost:2345 
warning: while parsing target description (at line 11): Target description specified unknown architecture "aarch64" 
warning: Could not load XML target description; ignoring 
Remote register badly formatted:T051d:0000000000000000;1f:50f8ffff7f000000;20:641cf5b77f000000;thread:p57c.57c;core:5; 
here: 00000000;1f:50f8ffff7f000000;20:641cf5b77f000000;thread:p57c.57c;core:5; 

它很清楚,主机gdb没有aarch64。有没有添加架构到gdb的方法?我似乎无法找到办法。

Is there a way to add architectures to gdb?

是:与--enable-targets=all配置。