Hi,
Just to add a few things ...
On Thu, May 31, 2012 at 11:36 AM, John Idarraga <idarraga_at_cern.ch> wrote:
> 1) Start gdb with no parameters (you can do it from emacs too)
> 2) Then run root separately and load your libs
> 3) Look for the processId and attach gdb to that id
> Here you will see that your root session freezes and you are ready to
> put on your breakpoints
I use the following alias to simplify my life:
alias debug_root="gdb -p $(pgrep root.exe)"
> 4) Tell gdb to "continue" and then you recover your ROOT session
Also if you run both root and gdb with a ROOT version compiled with "--build=debug", you can access the ROOT symbols in your gdb session, e.g. this works:
print ROOT_object_in_program.somemethod()
GL
-- Suvayu Open source is the future. It sets us free.Received on Thu May 31 2012 - 12:43:50 CEST
This archive was generated by hypermail 2.2.0 : Thu May 31 2012 - 17:50:01 CEST