From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1985 invoked by alias); 27 May 2009 19:25:39 -0000 Received: (qmail 1961 invoked by uid 22791); 27 May 2009 19:25:35 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mtaout5.012.net.il (HELO mtaout5.012.net.il) (84.95.2.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 May 2009 19:25:23 +0000 Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KKB00L00HUGTH00@i_mtaout5.012.net.il> for gdb-patches@sourceware.org; Wed, 27 May 2009 22:25:19 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.115.215]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KKB00613HY6OXG0@i_mtaout5.012.net.il>; Wed, 27 May 2009 22:25:19 +0300 (IDT) Date: Wed, 27 May 2009 19:25:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] Fix troubles with watchpoints in DJGPP In-reply-to: <001401c9de9f$928b9f80$b7a2de80$@u-strasbg.fr> To: "Pierre Muller (IMAP)" Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83ab4ys5zy.fsf@gnu.org> References: <001401c9de9f$928b9f80$b7a2de80$@u-strasbg.fr> 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/msg00589.txt.bz2 > From: "Pierre Muller \(IMAP\)" > Date: Wed, 27 May 2009 09:48:49 +0200 > > > I also tried to use it but I have several problems, > some are probably DJGPP specific > (bad file descriptor errors when trying to restart > a ./gdb executable at level 2, meaning inside another gdb > itself being debugged by gdb). Please give me some simple test program and a transcript of a GDB session that reproduces this problem. I debug GDB with itself a lot, and I never saw this. Also, on what platform (OS and version) is that? > After some debugging, I realized that > DJGPP only calls insert_breakpoints () > that does call update_watchpoint with reparse set to one, > after pushing go32 target, > while with cygwin, the DLL loaded caused a > reloading of all breakpoints and triggered a > call to update_watchpoint with reparse = 1. > > > This one line patch fixes the problem. > > Is this patch OK? Thanks, but here, too, I would like a simple test program and a transcript of a GDB session before and after the patch. > PS-2) Eli, > do you have anything that could help me debug the > Bad file descriptor problems, like a library recording > file opening/closing using the DJGPP file system extensions? No, but you can put a breakpoint on the respective library functions, couldn't you?