From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72308 invoked by alias); 6 May 2015 17:15:02 -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 72276 invoked by uid 89); 6 May 2015 17:15:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_00,KAM_BODY_URIBL_PCCC,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout23.012.net.il Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 May 2015 17:14:59 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NNX00800UDK1I00@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Wed, 06 May 2015 20:14:56 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNX0079IUKTYT60@a-mtaout23.012.net.il>; Wed, 06 May 2015 20:14:54 +0300 (IDT) Date: Wed, 06 May 2015 17:15:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Locate executables on remote stubs without multiprocess extensions In-reply-to: <1430932230-12551-1-git-send-email-gbenson@redhat.com> To: Gary Benson Cc: gdb-patches@sourceware.org, philippe.waroquiers@skynet.be Reply-to: Eli Zaretskii Message-id: <83lhh1r5k9.fsf@gnu.org> References: <20150506103145.GA30896@blade.nx> <1430932230-12551-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00115.txt.bz2 > From: Gary Benson > Cc: Philippe Waroquiers > Date: Wed, 6 May 2015 18:10:30 +0100 > > This commit allows GDB to determine filenames of main executables > when debugging using remote stubs without multiprocess extensions. > The qXfer:exec-file:read packet is extended to allow an empty > annex, with the meaning that the remote stub should supply the > filename of whatever it thinks is the current process. > > Built and regtested on RHEL6.6 x86_64. > > Is this ok to commit? > > Cheers, > Gary > > > gdb/ChangeLog: > > * remote.c (remote_add_inferior): Call exec_file_locate_attach > for fake PIDs as well as real ones. > (remote_pid_to_exec_file): Send empty annex if PID is fake. > > gdb/doc/ChangeLog: > > * gdb.texinfo (General Query Packets): Document > qXfer:exec-file:read with empty annex. > > gdb/gdbserver/ChangeLog: > > * server.c (handle_qxfer_exec_file): Use current process > if annex is empty. The documentation part is OK. Thanks.