From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28831 invoked by alias); 23 Jan 2015 07:45:55 -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 28702 invoked by uid 89); 23 Jan 2015 07:45:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mga01.intel.com Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 23 Jan 2015 07:45:37 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 22 Jan 2015 23:45:34 -0800 X-ExtLoop1: 1 Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25]) by orsmga001.jf.intel.com with ESMTP; 22 Jan 2015 23:45:34 -0800 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.229]) by irsmsx110.ger.corp.intel.com ([169.254.15.8]) with mapi id 14.03.0195.001; Fri, 23 Jan 2015 07:45:32 +0000 From: "Metzger, Markus T" To: Jan Kratochvil CC: Patrick Palka , "palves@redhat.com" , "gdb-patches@sourceware.org" Subject: RE: x86_64-m32 internal error for multi-thread-step.exp [Re: [PATCH v10 06/28] btrace: change branch trace data structure] Date: Fri, 23 Jan 2015 07:56:00 -0000 Message-ID: References: <1389686678-9039-1-git-send-email-markus.t.metzger@intel.com> <1389686678-9039-7-git-send-email-markus.t.metzger@intel.com> <20150108204943.GA4851@host2.jankratochvil.net> <20150122163740.GA11113@host2.jankratochvil.net> In-Reply-To: <20150122163740.GA11113@host2.jankratochvil.net> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00636.txt.bz2 > -----Original Message----- > From: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] On Behalf Of Jan Kratochvil > Sent: Thursday, January 22, 2015 5:38 PM > To: Metzger, Markus T > Cc: Patrick Palka; palves@redhat.com; gdb-patches@sourceware.org > Subject: Re: x86_64-m32 internal error for multi-thread-step.exp [Re: > [PATCH v10 06/28] btrace: change branch trace data structure] >=20 > On Thu, 22 Jan 2015 13:29:55 +0100, Metzger, Markus T wrote: > > This fail seems to be caused by > 588dcc3edbde19f90e76de969dbfa7ab3e17951a > > "Consolidate the custom TUI query hook with the default query hook". I= t is > not > > related to btrace. >=20 > I am sorry I did not retest the commits back to the initial btrace check-= in. > As I only now have a hardware capable of btrace I have assumed the FAILs > are > there since the initial btrace check-in. I didn't mean to complain; I just wanted to point out that this fail is more generic and affects debugging multi-threaded inferiors in general. The other fails you reported do seem to be there since the beginning. It looks like the is_kernel_addr heuristic gets it wrong for 32bit inferiors on 64-bit systems. The heuristic checks whether the most significant bit is set. On 64-bit systems, the kernel is loaded into the high 64-bit area leaving the entire 32-bit address space to 32-bit processes. GDB checks bit 31 since it is a 32-bit inferior. It should still check bit 63 since i= t is a 64-bit kernel. Does GDB even know that the 32-bit inferior is running on a 64-bit system? There also seem to be some issues in reverse/replay stepping. The reverse-next command keeps going when it reached the previous source line; same for replay next. I need to investigate why this is. > As I only now have a hardware capable of btrace That's good. I hope this feature is useful for your own debugging work. Let me know how you like it. Regards, Markus. Intel GmbH Dornacher Strasse 1 85622 Feldkirchen/Muenchen, Deutschland Sitz der Gesellschaft: Feldkirchen bei Muenchen Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk Registergericht: Muenchen HRB 47456 Ust.-IdNr./VAT Registration No.: DE129385895 Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052