From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100608 invoked by alias); 20 Oct 2015 16:55:59 -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 100432 invoked by uid 89); 20 Oct 2015 16:55:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp-a02.blackberry.com Received: from smtp-a02.blackberry.com (HELO smtp-a02.blackberry.com) (208.65.78.91) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 20 Oct 2015 16:55:57 +0000 Received: from mhs101cnc.rim.net ([10.65.141.79]) by mhs214cnc-app.rim.net with ESMTP; 20 Oct 2015 12:55:55 -0400 Received: from unknown (HELO [10.222.109.89]) ([10.65.140.254]) by mhs101cnc.rim.net with ESMTP; 20 Oct 2015 16:55:55 +0000 Subject: Re: [PATCH 2/3] (patch 2/4, v2) [nto] Implement TARGET_OBJECT_AUXV. To: Pedro Alves , "gdb-patches@sourceware.org" References: <56263FED.3050602@redhat.com> <1445351294-18179-1-git-send-email-aristovski@qnx.com> <1445351294-18179-3-git-send-email-aristovski@qnx.com> <56265BB2.6060204@redhat.com> <562660E9.7000000@qnx.com> <562665DE.1030104@redhat.com> Newsgroups: gmane.comp.gdb.patches From: Aleksandar Ristovski X-Enigmail-Draft-Status: N1110 Message-ID: <5626721A.5060808@qnx.com> Date: Tue, 20 Oct 2015 17:08:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <562665DE.1030104@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2015-10/txt/msg00372.txt.bz2 On 15-10-20 12:03 PM, Pedro Alves wrote: > On 10/20/2015 04:42 PM, Aleksandar Ristovski wrote: >> On 15-10-20 11:20 AM, Pedro Alves wrote: >>> Does this result in any visible improvement? I assume that >>> at least, "info auxv" now works [1] [2]. It'd be really nice to have a >>> blurb in the commit log mentioning what motivated this. >> >> Yes, info auxv works on a live process. For the core I have other >> patches that need to go in first, but the mechanism of getting auxv >> remains the same; only determining initial stack changes. > > OK, but please clarify or drop the misleading comment until > those patches go in then. Please push with that fixed. Comment dropped. --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -934,8 +934,6 @@ procfs_xfer_partial (struct target_ops *ops, enum target_object object, if (err != EOK) return TARGET_XFER_E_IO; - /* Similar as in the case of a core file, we read auxv from - initial_stack. */ initial_stack = procinfo.initial_stack; /* procfs is always 'self-hosted', no byte-order manipulation. */ > >> >> I will add something to the commit log. >> "Fix 'info auxv' for nto." > > Thanks. > >>> [1] - BTW, if you enable gdb.base/auxv.exp on NTO, does it pass? >>> >> >> It fails since we have AT_* entries that are specific to nto, and get >> printed as ??? which causes regex to not match. I have it patched >> internally and print them out, but didn't think it would be acceptable >> upstream. > > Why wouldn't it? If the issue is that the numbers conflict with other > ports, then it can be handled with a gdbarch method. We have added tags with neutrino specific meanings. I'll address that later if that's ok with you. Thanks, Aleksandar Ristovski From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103910 invoked by alias); 20 Oct 2015 16:56:29 -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 103841 invoked by uid 89); 20 Oct 2015 16:56:29 -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,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 20 Oct 2015 16:56:22 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZoaCo-0002o5-2h for gdb-patches@sourceware.org; Tue, 20 Oct 2015 18:56:13 +0200 Received: from 209.226.137.108 ([209.226.137.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Oct 2015 18:56:10 +0200 Received: from aristovski by 209.226.137.108 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Oct 2015 18:56:10 +0200 To: gdb-patches@sourceware.org From: Aleksandar Ristovski Subject: Re: [PATCH 2/3] (patch 2/4, v2) [nto] Implement TARGET_OBJECT_AUXV. Date: Tue, 20 Oct 2015 17:13:00 -0000 Message-ID: <5626721A.5060808@qnx.com> References: <56263FED.3050602@redhat.com> <1445351294-18179-1-git-send-email-aristovski@qnx.com> <1445351294-18179-3-git-send-email-aristovski@qnx.com> <56265BB2.6060204@redhat.com> <562660E9.7000000@qnx.com> <562665DE.1030104@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <562665DE.1030104@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00373.txt.bz2 Message-ID: <20151020171300.2pYCkAMM-9wqUowHzNwt3wz6_LwS_-Bhd1dHzjCF6cM@z> On 15-10-20 12:03 PM, Pedro Alves wrote: > On 10/20/2015 04:42 PM, Aleksandar Ristovski wrote: >> On 15-10-20 11:20 AM, Pedro Alves wrote: >>> Does this result in any visible improvement? I assume that >>> at least, "info auxv" now works [1] [2]. It'd be really nice to have a >>> blurb in the commit log mentioning what motivated this. >> >> Yes, info auxv works on a live process. For the core I have other >> patches that need to go in first, but the mechanism of getting auxv >> remains the same; only determining initial stack changes. > > OK, but please clarify or drop the misleading comment until > those patches go in then. Please push with that fixed. Comment dropped. --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -934,8 +934,6 @@ procfs_xfer_partial (struct target_ops *ops, enum target_object object, if (err != EOK) return TARGET_XFER_E_IO; - /* Similar as in the case of a core file, we read auxv from - initial_stack. */ initial_stack = procinfo.initial_stack; /* procfs is always 'self-hosted', no byte-order manipulation. */ > >> >> I will add something to the commit log. >> "Fix 'info auxv' for nto." > > Thanks. > >>> [1] - BTW, if you enable gdb.base/auxv.exp on NTO, does it pass? >>> >> >> It fails since we have AT_* entries that are specific to nto, and get >> printed as ??? which causes regex to not match. I have it patched >> internally and print them out, but didn't think it would be acceptable >> upstream. > > Why wouldn't it? If the issue is that the numbers conflict with other > ports, then it can be handled with a gdbarch method. We have added tags with neutrino specific meanings. I'll address that later if that's ok with you. Thanks, Aleksandar Ristovski