GDB remote debug: can't stop the thread

后端 未结 2 473
-上瘾入骨i
-上瘾入骨i 2021-01-21 13:18

I have a gdbserver on a target, that I launch like gdbserver :2345 /bin/ls. Next I am connect a gdb from a host, and trying issue next commands:

         


        
相关标签:
2条回答
  • 2021-01-21 14:02

    In order to check which architecture your GDB currently support (those you can have in a set architecture command), just type:

    (gdb) set architecture
    

    without any arguments... As simple as that. Otherwise, you'll probably need a cross GDB, as mentioned by @drbank0.

    0 讨论(0)
  • 2021-01-21 14:13

    While it is possible to build "multiarch" gdb, default Ubuntu GDB (called gdb) is built to support single architecture - host PC. You can not debug other CPUs with it, although it does connect to any gdbserver.

    You need gdb that can debug your target (ARM) and is compatible with ABI used on your target.

    You should get that with your toolchain, but if not, it's not hard to build from source. See sourceware.org/gdb/wiki/BuildingCrossGDBandGDBserver for brief instructions.

    0 讨论(0)
提交回复
热议问题