From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Snyder To: John Hughes Cc: Eli Zaretskii , gdb-patches@sourceware.cygnus.com Subject: Re: Hardware watchpoints for UnixWare; based on snapshot 20010627 Date: Fri, 29 Jun 2001 14:15:00 -0000 Message-id: <3B3CEFD9.9E9221C1@cygnus.com> References: X-SW-Source: 2001-06/msg00544.html John Hughes wrote: > > Eli Zaretskii writes: > > From: "John Hughes" > >> Interface between procfs.c and i386v42-nat.c is unclean, > >> but I don't see how to do it better. > > > > Is there something that i386-nat.c could do to help? > > I don't realy see how. The problem is that > > 1. the "i386v42mp-nat.c" (what a foul name!) code needs access to > the debug registers stored in the "pr_family" part of the > prstatus.pr_lwp structure, which is only known to procfs.c > > 2. It also needs to issue a PCSDBREG command via procfs. > > So it needs some horrid special access to stuff only procfs knows. How about adding access methods to procfs.c explicitly to export this functionality to i386*-nat.c? I seem to recall we already have a few like that, and IMO it is better than many alternatives.