From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30690 invoked by alias); 13 Aug 2010 08:47:03 -0000 Received: (qmail 30667 invoked by uid 22791); 13 Aug 2010 08:47:00 -0000 X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_20,MSGID_MULTIPLE_AT,TW_GJ X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.156) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Aug 2010 08:46:54 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o7D8kl6W062490 ; Fri, 13 Aug 2010 10:46:47 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms5.u-strasbg.fr [IPv6:2001:660:2402:d::14]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id o7D8kktI093138 ; Fri, 13 Aug 2010 10:46:46 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from d620muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id o7D8kjcH096302 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Fri, 13 Aug 2010 10:46:45 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Pedro Alves'" , References: <002a01cb3492$5ba5c050$12f140f0$@muller@ics-cnrs.unistra.fr> <201008121642.47284.pedro@codesourcery.com> In-Reply-To: <201008121642.47284.pedro@codesourcery.com> Subject: RE: [RFC] breakpoint.c: Fix nasty problem with msvcrt DLL on Windows Date: Fri, 13 Aug 2010 08:47:00 -0000 Message-ID: <000301cb3ac4$107d4fc0$3177ef40$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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/msg00182.txt.bz2 If I understood the code correctly, "longjmp master" breakpoints type are internal breakpoints that stay always disabled and never get enabled. Their function is to list all possible functions that might do long jumps (i.e. modify the stack directly) and trigger the creation of a normal "longjmp" breakpoint, via a call to "set_longjmp_breakpoint" function. This function is called only once in step_1 function in infcmd.c=20 source. The normal "longjmp" breakpoints are deleted at each stop, by a call to "delete_longjmp_breakpoint" (2 such calls exist, one is part of a cleanup in case an error appears). Thus, when calling "maint info breakpoints" command, only "longjmp master" internal breakpoint types are listed. If my analysis is correct, the answer to your two questions is no. =20 Pierre > -----Message d'origine----- > De=A0: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] De la part de Pedro Alves > Envoy=E9=A0: Thursday, August 12, 2010 5:43 PM > =C0=A0: gdb-patches@sourceware.org > Cc=A0: Pierre Muller > Objet=A0: Re: [RFC] breakpoint.c: Fix nasty problem with msvcrt DLL on > Windows >=20 > 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. >=20 > 1. Did we really try to insert a Enb=3Dn breakpoint? > 2. Did we really try to insert a longjmp master breakpoint? >=20 > If yes to any of those, something else is broken. >=20 > -- > Pedro Alves