From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7011 invoked by alias); 19 Jun 2014 15:02:19 -0000 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 Received: (qmail 6998 invoked by uid 89); 19 Jun 2014 15:02:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 19 Jun 2014 15:02:05 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5JF23YQ009170 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Jun 2014 11:02:03 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5JF21gi030350; Thu, 19 Jun 2014 11:02:02 -0400 Message-ID: <53A2FB68.9090500@redhat.com> Date: Thu, 19 Jun 2014 15:02:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Jan Kratochvil CC: Doug Evans , "gdb-patches@sourceware.org" Subject: Re: Regression for watchpoint-fork.exp [Re: [PATCH v3 2/5] PR breakpoints/7143 - Watchpoint does not trigger when first set] References: <1394154640-14053-1-git-send-email-palves@redhat.com> <1394154640-14053-3-git-send-email-palves@redhat.com> <53272CB0.6050101@redhat.com> <532AF3D0.8090904@redhat.com> <20140617191850.GA10997@host2.jankratochvil.net> <20140619134330.GA14567@host2.jankratochvil.net> In-Reply-To: <20140619134330.GA14567@host2.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-06/txt/msg00707.txt.bz2 On 06/19/2014 02:43 PM, Jan Kratochvil wrote: > On Tue, 17 Jun 2014 21:18:50 +0200, Jan Kratochvil wrote: >> On Thu, 20 Mar 2014 14:57:36 +0100, Pedro Alves wrote: >>> Here's what I pushed (nothing else changed). >> >> 31e77af205cf6564c2bf4c18400b4ca16bdf92cd is the first bad commit >> commit 31e77af205cf6564c2bf4c18400b4ca16bdf92cd >> Author: Pedro Alves >> Date: Thu Mar 20 13:26:32 2014 +0000 >> PR breakpoints/7143 - Watchpoint does not trigger when first set >> >> PASS kernel-3.14.6-200.fc20.x86_64 >> FAIL kernel-3.13.10-200.dentrybuflen.fc20.x86_64 > > That was a red herring, in fact it was due to different GCC. > > (gdb) disas marker > Dump of assembler code for function marker: > 0x0000000000400826 <+0>: push %rbp > 0x0000000000400827 <+1>: mov %rsp,%rbp > => 0x000000000040082a <+4>: pop %rbp > 0x000000000040082b <+5>: retq > End of assembler dump. > > ptrace(PTRACE_POKEUSER, 24574, offsetof(struct user, u_debugreg), 0x40082a) = -1 EINVAL (Invalid argument) > > New GDB in the 'hbreak' case does not align the breakpoint address. Hmm, I'm confused. Why would the breakpoint address need to be aligned? And aligned to what? > Attaching gzipped gdb.threads/watchpoint-fork-parent-st > from gcc-4.9.0-9.fc21.x86_64. Thanks, I can reproduce it. -- Pedro Alves