This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH]: Make Linux use the new unified x86 watchpoint support
- To: msnyder at redhat dot com
- Subject: Re: [PATCH]: Make Linux use the new unified x86 watchpoint support
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Tue, 27 Mar 2001 12:43:16 -0500 (EST)
- CC: kettenis at wins dot uva dot nl, gdb-patches at sources dot redhat dot com
- References: <Pine.SUN.3.91.1010327085422.19916E-100000@is> <3AC0C414.2954@redhat.com>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> Date: Tue, 27 Mar 2001 08:47:16 -0800
> From: Michael Snyder <msnyder@redhat.com>
>
> The gdb was configured for native linux, but until this change,
> it was also able to be used to debug a remote embedded i386
> target. This change breaks that, because it makes ptrace calls.
How does GDB know if the target is local or remote? Can the Linux
implementation of I386_DR_LOW_* macros test that and avoid calling
ptrace in that case?
Also, since I see that the Linux port of GDB was linking in
i386v-nat.c, and i386v-nat.c defined those same watchpoint-related
functions which called ptrace, and did that unconditionally, how did
that work before the last changes?