Re: [RFA] Fix troubles with watchpoints in DJGPP

Eli Zaretskii
2009-05-28T08:08:55Z

> From: Pedro Alves <pedro@codesourcery.com>
> Date: Thu, 28 May 2009 00:30:28 +0100
> Cc: "Pierre Muller \(IMAP\)" <muller@ics.u-strasbg.fr>,
> "'Eli Zaretskii'" <eliz@gnu.org>
>
> On Wednesday 27 May 2009 08:48:49, Pierre Muller (IMAP) wrote:
>
> > PS-1) Are there not other native targets, without
> > dynamic libraries, that will suffer the same troubles?
>
> I think so. I've just tried on x86_64-linux, with a statically
> linked binary (I used gdb.threads/staticthreads, set a watchpoint
> on semaphore), and although there are no shared libraries loaded,
> the problem is masked by adding the symbols of the vsyscall page
> (sysfile-mem.c:add_vsyscall_page). If I hack that function to
> do nothing, I see that same thing you're seeing on djgpp.
>
> Maybe there's a place for a generic fix? Somewhere after
> having opened a connection to the target interface. I was
> thinking of post_create_inferior, but sounds like opening
> a connection to a remote target with "target remote" that
> happens to not pull in any more symbols (like most embedded
> targets) is having the same problem? Maybe there should be
> a target_post_open ...

I'd indeed prefer a generic fix.

Pierre, could you please try making a patch along the lines Pedro
suggests above?