简体   繁体   English

使用GDB进行NASM组装时打破本地标签

[英]Break at local label using GDB for NASM assembly

I want to break at a local label in NASM assembly code using GDB. 我想使用GDB打破NASM汇编代码中的本地标签。

Issuing the following command yields the output: 发出以下命令将产生输出:

   (gdb) break *start.label1 + 217
    Attempt to extract a component of a value that is not a structure.

Here my code goes something like this: 这里我的代码是这样的:

global _start
_start:
...
.label1:
...

How can I break at local .label1 ? 如何在本地.label1.label1

Disassemble the function where your local label is called, select the address and add a break as you normally would with the address, not the label name. 分解调用本地标签的函数,选择地址,然后像往常一样使用地址而不是标签名称添加一个分隔符。 You can also disassemble by the address for local labels. 您也可以按本地标签的地址拆卸。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM