Debug a root executable

Dear All,

i would like to use gdb to debug my root executable (I compile “outside” root/cint with normal gcc). I know how to compile with debug symbols aso but when I debug a root executable it seems like that it never shows the right line numbers and so on. it is always confused where it is.

I have the suspicion that root uses threats (i am beyond my knowledge of computers now …) and that gdb has to be told which one to follow. I have no idea how to do that.

Does anyone have experience with that? Debugging a root exe which uses TApplication to run (and displays graphics)?

Thanks a lot
Andi

Andy

Just do:

gdb root.exe
or
gdb myapp.exe

When you get a crash
gdb > bt
or any other gdb commands

Rene