From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22469 invoked by alias); 13 Aug 2010 11:15:56 -0000 Received: (qmail 22458 invoked by uid 22791); 13 Aug 2010 11:15:55 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,TW_GJ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Aug 2010 11:15:49 +0000 Received: (qmail 32611 invoked from network); 13 Aug 2010 11:15:48 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 13 Aug 2010 11:15:48 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [RFC] breakpoint.c: Fix nasty problem with msvcrt DLL on Windows Date: Fri, 13 Aug 2010 11:15:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.31-11-rt; KDE/4.4.2; x86_64; ; ) Cc: "Pierre Muller" References: <002a01cb3492$5ba5c050$12f140f0$@muller@ics-cnrs.unistra.fr> <201008121642.47284.pedro@codesourcery.com> <000301cb3ac4$107d4fc0$3177ef40$@muller@ics-cnrs.unistra.fr> In-Reply-To: <000301cb3ac4$107d4fc0$3177ef40$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008131215.44484.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: 2010-08/txt/msg00183.txt.bz2 (Please don't top post.) On Friday 13 August 2010 09:46:46, Pierre Muller wrote: > > On Thursday 05 August 2010 12:35:51, Pierre Muller wrote: > > > (gdb) maint inf b > > > Num Type Disp Enb Address What > > > -10 longjmp master keep n 0x61093868 inf 1 > > > -11 longjmp master keep n 0x77c06d74 inf 1 > > > > > > (gdb) n > > > Warning: > > > Cannot insert breakpoint -11. > > > Error accessing memory address 0x77c06d74: Input/Output error. > > > > 1. Did we really try to insert a Enb=n breakpoint? > > 2. Did we really try to insert a longjmp master breakpoint? > > > > If yes to any of those, something else is broken. > If I understood the code correctly, > "longjmp master" breakpoints type are internal breakpoints > that stay always disabled and never get enabled. (...) > If my analysis is correct, the answer to your two questions > is no. Your analysis is correct. But then why did gdb print "Cannot insert breakpoint -11.", with -11 being the number of one of the internal longjmp master breakpoints? Are we copying the breakpoint number when creating the longjmp momentary breakpoints from the master, meaning that's a red herring (though one that I'd like fixed), or is there something else really broken? -- Pedro Alves