From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109921 invoked by alias); 1 Mar 2018 02:23:57 -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 109909 invoked by uid 89); 1 Mar 2018 02:23:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Mar 2018 02:23:51 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C87528182D2E; Thu, 1 Mar 2018 02:23:49 +0000 (UTC) Received: from localhost (unused-10-15-17-196.yyz.redhat.com [10.15.17.196]) by smtp.corp.redhat.com (Postfix) with ESMTP id A1BD12024CA6; Thu, 1 Mar 2018 02:23:49 +0000 (UTC) From: Sergio Durigan Junior To: GDB Patches Cc: Simon Marchi , Pedro Alves , Joel Brobecker Subject: Re: [PATCH v3 0/2] Make gdbserver work with filename-only binaries References: <20180210014241.19278-3-sergiodj@redhat.com> <20180228032708.19670-1-sergiodj@redhat.com> Date: Thu, 01 Mar 2018 02:23:00 -0000 In-Reply-To: <20180228032708.19670-1-sergiodj@redhat.com> (Sergio Durigan Junior's message of "Tue, 27 Feb 2018 22:27:06 -0500") Message-ID: <87sh9ka5ze.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00000.txt.bz2 On Tuesday, February 27 2018, I wrote: > Third version. > > These two patches fix the issue pointed by Simon on IRC, that > gdbserver doesn't recognize filename-only binaries anymore: > > $ gdbserver :1234 a.out > /bin/bash: line 0: exec: a.out: not found > During startup program exited with code 127. > Exiting > > The first one is a preparation patch (and can go in independently), > which moves path-manipulation functions from utils.c to a new > common/pathstuff.c, making them available for gdbserver as well. > > The second patch is the fix itself. > > More details in each message. Simon reminded me that this patch is also a good fit for the 8.1 branch, so I went ahead and pushed it there. 506817a3abd98859eb3474389e756c0253cc28a1 2441702a72f324e41a1624dc042b334f375e2d81 6d607b8812b35ff36fbbad2915696f6669f86a32 Thanks, -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible http://sergiodj.net/