Break at local label using GDB for NASM assembly

后端 未结 1 1956
天命终不由人
天命终不由人 2021-01-21 08:26

I want to break at a local label in NASM assembly code using GDB.

Issuing the following command yields the output:

   (gdb) break *start.label1 + 217
           


        
1条回答
  •  灰色年华
    2021-01-21 09:20

    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.

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