How to set breakpoints on future shared libraries with a command flag

后端 未结 3 1825
攒了一身酷
攒了一身酷 2020-11-29 16:16

I\'m trying to automate a gdb session using the --command flag. I\'m trying to set a breakpoint on a function in a shared library (the Unix equivalent of a DLL)

3条回答
  •  自闭症患者
    2020-11-29 16:53

    OT: In terminal it would look like this to debug Caja in one line:

    gdb -ex "set breakpoint pending on" -ex "break gdk_x_error" -ex run --args caja --sync
    

提交回复
热议问题