In the previous post, we’ve successfully launched KGDB on BeagleBoard. Now we need to execute GDB with BeagleBoard’s symbol table and and remote connect to KGDB on BeagleBoard.

1. Go to the folder we built arm-angstrom-linux-gnueabi-gdb and type:
./arm-angstrom-linux-gnueabi-gdb [path to vmlinux file]

GDB will launch and you should see:

The most important part of this GDB is that the host is your PC (in my case x86_64-linux), and target is BeagleBoard (arm-angstrom-linux-gnueabi).

2. In gdb command prompt, type
target remote /dev/[COM port]

to connect to BeagleBoard. You will see

Hooray! Now you can start debugging!


Problem 1:
I got an error message when trying to remote connect to BeagleBoard in GDB. What’s wrong?
This is because your previous screen session is still connected to BeagleBoard via COM port. Therefore your COM port is occupied. We need to terminate the screen to release COM port. We can do it by:
1. Open a new terminal. Type screen –list

2. Type screen –S 3154 –X quit  3154 is your screen session id. Now your screen session is terminate. You can continue with gdb.

創作者 silentlain 的頭像

SilentLain's Blog

silentlain 發表在 痞客邦 留言(1) 人氣()

留言列表 (1)

  • v216913
  • b2JLSWKrl3I奢侈品仿牌,保固說到做到,誠信經營,走秀最新款,低調奢華上檔次 最潮爆純手工編織面料,進口面料配皮原版內裏咨詢訂購加LINE:kk2023,高檔五金裝配,精湛的手工