How do I prepend a directory the library path when loading a core file in gdb on Linux

Start gdb without specifying the executable or core file, then type the following commands: set solib-absolute-prefix ./usr file path/to/executable core-file path/to/corefile You will need to make sure to mirror your library path exactly from the target system. The above is meant for debugging targets that don’t match your host, that is why it’s important to … Read more

How do I get the value and type of the current exception in C++ in gdb?

Earlier answers were correct when written (in 2013), but since then gdb and libstdc++ have changed. libstdc++ now has some hooks that let gdb interact more nicely with the exception system. In particular, there is now enough information exposed for gdb to provide a $_exception convenience variable to the user. This variable holds the exception … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)