Re: problem using gdb with ROOT

From: Chiara Zampolli <chiara.zampolli_at_bo.infn.it>
Date: Thu, 31 May 2012 12:47:24 +0200


Hello all,

        Many thanks for your kind help! I think it was my oversight, the --build=debug was not considered when I compiled root. After a fresh compilation, now it works.

        Sorry for the noise...

                Chiara

On May 31, 2012, at 12:43 PM, suvayu ali wrote:

> 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:47:32 CEST

This archive was generated by hypermail 2.2.0 : Thu May 31 2012 - 17:50:01 CEST