How to break on assembly instruction at a given address in gdb?

前端 未结 2 1374
遥遥无期
遥遥无期 2020-11-30 21:54
0x0000000000400448 :    push   %rbp
0x0000000000400449 :    mov    %rsp,%rbp
0x000000000040044c :    mov    $0x6,%eax
0x000         


        
相关标签:
2条回答
  • 2020-11-30 22:34

    Another way:

    break *main+4

    This will add a breakpoint at 0x000000000040044c
    I think this is easier than writing the whole address!

    0 讨论(0)
  • 2020-11-30 22:53

    try break *0x0000000000400448

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