This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: regarding tracepoint support on a stub
- From: "Newman, Mark (N-Superior Technical Resource Inc)" <mark dot newman at lmco dot com>
- To: ankit thukral <ankit_plug at yahoo dot com>, gdb at sources dot redhat dot com
- Date: Mon, 03 Nov 2003 14:01:23 -0500
- Subject: RE: regarding tracepoint support on a stub
Would it be desireable to drop ptrace all together and start looking at
using /proc in gdbserver?
The man pages (both Sun's and GNU's) refer to ptrace as "unique and
arcane".
Mark Newman
> -----Original Message-----
> From: gdb-owner@sources.redhat.com
> [mailto:gdb-owner@sources.redhat.com]On Behalf Of ankit thukral
> Sent: Monday, November 03, 2003 1:24 AM
> To: gdb@sources.redhat.com
> Subject: regarding tracepoint support on a stub
>
>
> hi all,
> i was going through the GDB support for
> tracepoints and the packets it sends to the stub.i
> thought of collecting the registers on the gdbserver
> side using a single ptrace to collect all the
> registers and then store the ones requested instead of
> a ptrace for each register. the problem i now face is
> : there are 3 different ptrace requests for collecting
> registers,viz,PTRACE_GETREGS, PTRACE_GETFPREGS and
> PTRACE_GETFPAREGS.how do i determine (on the stub
> side) which of these to call as i don't have anything
> on the GDBSERVER side (or so i guess) which would
> categorize a register to an integer or a float
> register.
> also,please suggest if there is a better way in
> which i can accomplish the above(i.e.,implementation
> of collecting registers in a better way).
>
> thanks in advance,
> ankit.
>
> __________________________________
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> http://launch.yahoo.com/promos/britneyspears/
>