Re: [ROOT] debugging ROOT with gdb

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Jun 04 2002 - 12:59:17 MEST


Like I said before X11 sync status is now controlled via the rootrc 
X11.Sync resource. To set a breakpoint on RootX11ErrorHandler you must
first run root.exe to the prompt, then interrupt, then set the
breakpoint. The issue is the the libGX11 is loaded at run time and not
at program startup time. When root.exe reaches the prompt it has been
loaded. Or more precisely is is loaded in
TApplication::LoadGraphicsLibs().

Cheers, Fons.


On Mon, 2002-06-03 at 23:04, David Faden wrote:
> Hi,
>    Is there an online guide to debugging ROOT apps with gdb? 
> Specifically, I'm wondering if someone could explain in more detail these 
> directions given in by Fons Rademaker in an August 14, 2001 Roottalk message:
> 
> You need to run ROOT in synchronous mode in the debugger and set a breakpoint
> in RootX11ErrorHandler to see which X11 object causes the problem (set 
> debug=5
> in .rootrc to run in X11 sunc mode).
> 
> I think the above directions could be useful in figuring out a problem 
> that's been puzzling me. I have added the following line to my .rootrc file:
> debug: 5
> Is this correct?
>    I have not figured out how to set a break point in RootX11ErrorHandler. 
> gdb seems not to be aware of it. Would I need to recompile the ROOT 
> libraries for gdb to be able to find it?
>    Thank you.
> 
> David
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:54 MET