This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: "tracepoints", "follow-fork-mode", "watch - remote"
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: "Sarnath K - CTD, Chennai." <k_sarnath at ctd dot hcltech dot com>
- Cc: Pierre Muller <muller at cerbere dot u-strasbg dot fr>, gdb at sources dot redhat dot com
- Date: Fri, 25 Jan 2002 13:20:41 -0500
- Subject: Re: "tracepoints", "follow-fork-mode", "watch - remote"
- References: <EF836A380096D511AD9000B0D021B52756BFC6@narmada.ctd.hcltech.com>
On Fri, Jan 25, 2002 at 04:18:23PM +0530, Sarnath K - CTD, Chennai. wrote:
> I tried setting "tracepoints" and dumping snapshots.
> But unfortunately I am not able to do it. For the
> commands "tstart" and "tstop" GDB says that
> "Trace can only be run on remote targets.". so I just
> "run" the program. The program executed and exited
Only remote targets, remember?
> So, Can't I trace on a standalone system.
> If I use "gdbserver" as on the target side,
> GDB says that "target doesnt support command".
> So whats the solution ? Cant "tracepoints" be
> used ?
You need a stub supporting tracepoints. At the moment I do not know of
any.
> 2. hardware brkpoints, hardware "watch"es are
> not supported in the GDBSERVER. Is this true ?
> or Is there any configutation option for this, which
> I am missing ?
> (PIII machine)
That is true. I could add them, but I need to finish the rest of my
gdbserver infrastructure work (currently on hold) first.
> 3. "set follow-fork-mode" always works as if it's value
> is "parent". I am not able to debug "child" or enable
> GDB "ask" for the choice. Is this configuraion, not
> supported on x86 machines or Am I missing something.
It is not supported on Linux. This is a documentation failure. It
could be supported, but I haven't really wrapped my head around how to
do it yet.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer