【问题标题】:How can I get GDB to stop asking me for symbols?如何让 GDB 停止向我询问符号?
【发布时间】:2014-03-06 21:33:22
【问题描述】:

我正在调试一个远程存根(嵌入式、程序集)。我可以正常连接:

$ msp430-gdb -nx -ex 'target remote XXX'

Remote debugging using XXX
0x00004400 in ?? ()
(gdb)

现在当我尝试设置断点时,GDB 抱怨没有符号:

(gdb) b 0x4404
No symbol table is loaded.  Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb)

我如何告诉它不要问我“未来的库加载”或没有符号表?遥控器永远不会有这些东西。谢谢!

编辑:我是个白痴。地址中断的语法是'b *addr'。 GDB 将 0x4404 解释为行号或符号或其他愚蠢的东西。

【问题讨论】:

    标签: assembly gdb msp430


    【解决方案1】:

    FWIW 您原来问题的答案是使用“设置断点挂起”;默认值为“auto”,但您可以使用“on”或“off”来自动创建或拒绝挂起的断点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-18
      • 1970-01-01
      • 2014-12-27
      • 1970-01-01
      • 2018-11-04
      • 1970-01-01
      相关资源
      最近更新 更多