This is the mail archive of the
mailing list for the GDB project.
Re: Tracepoint support in Cygnus GDB ?
- From: "Eli Zaretskii" <eliz at elta dot co dot il>
- To: Saravanan <pes at india dot hp dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 24 Sep 2003 20:19:04 +0200
- Subject: Re: Tracepoint support in Cygnus GDB ?
- References: <3F717475.33E13BC4@india.hp.com>
- Reply-to: Eli Zaretskii <eliz at elta dot co dot il>
> Date: Wed, 24 Sep 2003 16:09:49 +0530
> From: Saravanan <email@example.com>
> 1. Why does GDB not provide this support for local
> host ?
Simple: because no one wrote tracepoints support for native debugging.
> 2. Is it not the case that the features (supposed to
> be) provided by tracepoints can be done using
> breakpoint features only (for instance , we can
> specify COMMANDS for a breakpoint just as we can
> specify ACTIONS for tracepoints) ?
Yes. But tracepoints are supposed to be much more lightweight
(because only raw data is accumulated during the program's run, while
complicated and expensive computations like evaluation of arbitrary
expressions, are left for later). So, theoretically, if tracepoints
were available for native debugging, one could perhaps debug programs
without disrupting their time scale too much, maybe even debug
real-time programs (well, one's allowed to dream once in a while,
> 3. Does tracepoint use the same TRAP (or ILLEGAL )
> instruction mechanism for tracepoints as it does for