From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105051 invoked by alias); 23 Sep 2017 05:55:56 -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 105026 invoked by uid 89); 23 Sep 2017 05:55:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 23 Sep 2017 05:55:54 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvdPo-0004oH-Od for gdb-patches@sourceware.org; Sat, 23 Sep 2017 01:55:52 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvdPo-0004oD-HC; Sat, 23 Sep 2017 01:55:48 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1360 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dvdPo-0007Lm-1Q; Sat, 23 Sep 2017 01:55:48 -0400 Date: Sat, 23 Sep 2017 05:55:00 -0000 Message-Id: <83r2uyarha.fsf@gnu.org> From: Eli Zaretskii To: Pedro Alves CC: sergiodj@redhat.com, gdb-patches@sourceware.org In-reply-to: <9fd4d5eb-0e17-f2e4-97e0-5623c16d82b6@redhat.com> (message from Pedro Alves on Fri, 22 Sep 2017 21:37:49 +0100) Subject: Re: [PATCH v3 4/5] Implement "set cwd" command on GDB Reply-to: Eli Zaretskii References: <20170912042325.14927-1-sergiodj@redhat.com> <20170921225926.23132-1-sergiodj@redhat.com> <20170921225926.23132-5-sergiodj@redhat.com> <83poajcg9a.fsf@gnu.org> <878th64nqk.fsf@redhat.com> <838th6d0l1.fsf@gnu.org> <831smycyia.fsf@gnu.org> <87tvzuzdgv.fsf@redhat.com> <9fd4d5eb-0e17-f2e4-97e0-5623c16d82b6@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00730.txt.bz2 > Cc: gdb-patches@sourceware.org > From: Pedro Alves > Date: Fri, 22 Sep 2017 21:37:49 +0100 > > That would mean keep both non-expanded, and expanded paths around, > which is what I was suggesting with: > > (gdb) set cwd ~foo/bar > (gdb) show cwd > The current directory is ~foo/bar (/home/foo/bar) > ^^^^^^^^^^^^^ Keeping both is also OK, although I don't see how it would solve the problems Pedro mentioned earlier, and also now: > But that's not what I understood Eli suggesting. I understood > it as gdb expanding whatever's the value set on connection. > But I don't see how that could work, because before gdb connects > to a remote target explicitly, it's as if gdb was connected to > the native target (that's how "run" works without typing > "target native" explicitly, though you can type that), so > by the time you connect to the remote target, it's already > too late, gdb has already expanded on the host, and there's > nothing left to expand. I don't understand this description, which is not surprising, since my knowledge of the machinery involved in this is very superficial.