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)
--command
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