From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45084 invoked by alias); 1 Jul 2015 17:00:23 -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 45066 invoked by uid 89); 1 Jul 2015 17:00:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no 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; Wed, 01 Jul 2015 17:00:21 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id A420FB891F; Wed, 1 Jul 2015 17:00:20 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t61H0JaS006472; Wed, 1 Jul 2015 13:00:19 -0400 Message-ID: <55941CA2.90709@redhat.com> Date: Wed, 01 Jul 2015 17:00:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Yao Qi , gdb-patches@sourceware.org Subject: Re: [PATCH 00/11] Aarch64 linux GDB native multi-arch debugging (part 1) References: <1435759111-22856-1-git-send-email-yao.qi@linaro.org> In-Reply-To: <1435759111-22856-1-git-send-email-yao.qi@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-07/txt/msg00058.txt.bz2 On 07/01/2015 02:58 PM, Yao Qi wrote: > This patch series is to enable Aarch64 GDB (64-bit) debug arm program > (32-bit) rudimentarily, which means with these patches applied, Aarch64 > GDB is able to do some basic debugging to arm program . However, some > features are still missing, > > - Debug multi-threaded program, > - Use HW watchpoint and breakpoint, > > because current linux kernel ptrace doesn't have right requests to get > the TLS area and to set HW watchpoint registers. I am still working > with kernel hackers to get ptrace requests ready. Our plan is to be > clear on aarch64 multi-arch debugging requirements to kernel first, > get them upstream to kernel, and then, post the rest of aarch64 gdb > multi-arch patches. Afterwards, I'll add aarch64 multi-arch support > in gdbserver too. I'd be fantastic if you managed to merge the gdb and gdbserver arm/aarch64 files, like we did for x86. > > Patch #1 is to align arm-linux-nat.c to aarch64-linux-nat.c, it is a > refactor patch. Patch #2 and #3 starts the basic multi-arch debugging > support, in which some code is shared between arm and aarch64. Patch > #4 is to adjust all arm-*.xml target descriptions to fix some fails > I've seen. Patch #5 - #8 are various tweaks to gdb testsuite for > aarch64 multi-arch debugging. I skimmed these and they looked fine to me. > > Patch #9 - #11 can be regarded as an RFC, which teaches GDB to use > hardware single step in software single step architecture if target > supports hardware single step. They are useful to aarch64 multi-arch > debugging, because hardware single step is available for arm32 process > on aarch64. These I think are problematic as is. > > The whole series is tested on aarch64-linux with both aarch64 gcc and > arm gcc. It is also tested on arm-linux and x86_64-linux. Since we'll > branch 7.10 soon, I don't like to have such big change at last moment > of branching and releasing. I plan to push them (or part of them) in > after 7.10 branch is created, if there are no objections. > Thanks, Pedro Alves