From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12989 invoked by alias); 27 May 2009 23:30:08 -0000 Received: (qmail 12926 invoked by uid 22791); 27 May 2009 23:30:06 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 May 2009 23:30:00 +0000 Received: (qmail 6064 invoked from network); 27 May 2009 23:29:58 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 27 May 2009 23:29:58 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [RFA] Fix troubles with watchpoints in DJGPP Date: Wed, 27 May 2009 23:30:00 -0000 User-Agent: KMail/1.9.10 Cc: "Pierre Muller \(IMAP\)" , "'Eli Zaretskii'" References: <001401c9de9f$928b9f80$b7a2de80$@u-strasbg.fr> In-Reply-To: <001401c9de9f$928b9f80$b7a2de80$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905280030.28382.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00596.txt.bz2 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 ... -- Pedro Alves