簡體   English   中英

添加 gdb 目標架構:aarch64

[英]add gdb target achitecture: aarch64

我正在嘗試調試 android 的 Linux 內核。 我可以在 android 設備上運行 gdbserver64 並在主機上使用 gdb 連接到它。 但是,當我嘗試調試時,我收到此錯誤:

(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? 我似乎無法找到方法。

有沒有辦法將架構添加到 gdb?

是:使用--enable-targets=all配置它。

我必須從gdb 源代碼構建它:

  1. cd gdb-10.1
  2. ./configure --target=aarch64-linux-android && make -j8 && sudo make install
  3. aarch64-linux-android-gdb
  4. set sysroot
  5. target remote <android-ip-address>:<port-number>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM