From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128945 invoked by alias); 12 Feb 2018 19:57:40 -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 128935 invoked by uid 89); 12 Feb 2018 19:57:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD autolearn=no 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; Mon, 12 Feb 2018 19:57:38 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1379F8182D06; Mon, 12 Feb 2018 19:57:37 +0000 (UTC) Received: from psique.yyz.redhat.com (unused-10-15-17-196.yyz.redhat.com [10.15.17.196]) by smtp.corp.redhat.com (Postfix) with ESMTP id DC0D9FD926; Mon, 12 Feb 2018 19:57:36 +0000 (UTC) From: Sergio Durigan Junior To: GDB Patches Cc: Simon Marchi Subject: [PATCH 0/2] Make gdbserver work with filename-only binaries Date: Mon, 12 Feb 2018 19:57:00 -0000 Message-Id: <20180212195733.23639-1-sergiodj@redhat.com> In-Reply-To: <20180210014241.19278-3-sergiodj@redhat.com> References: <20180210014241.19278-3-sergiodj@redhat.com> X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg00177.txt.bz2 Second 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.