2017-09-12 1049 views
0

我試圖調試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的方法?我似乎無法找到辦法。

回答

0

Is there a way to add architectures to gdb?

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