From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112888 invoked by alias); 7 Jun 2015 12:13:21 -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 112833 invoked by uid 89); 7 Jun 2015 12:13:20 -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,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mailrelay110.isp.belgacom.be Received: from mailrelay110.isp.belgacom.be (HELO mailrelay110.isp.belgacom.be) (195.238.20.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 07 Jun 2015 12:13:20 +0000 X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=eWtaKQUTUbzTvYESxgzcVvJXO5dQmjbJ/tTWSlQWV0k= c=1 sm=2 a=IkcTkHD0fZMA:10 a=RqZMKl1PZ5LSf-TSLRoA:9 a=QEXdDO2ut3YA:10 a=sKeVFpo5sEV2Llac:21 a=nFxvnoFLA7oONKJr:21 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CyAgAsNXRV/xSZgW0NT4dgiXG2bYJVAoFhAQEBAQEBhS4BAQQjVhALDgoCAiYCAlcGiEWrcXCjOgEBAQEBAQEBAgEBAQEegSGKIoUGB4JogUUFoAeGeY81gQWDGIM0AQEB Received: from 20.153-129-109.adsl-dyn.isp.belgacom.be (HELO [192.168.1.11]) ([109.129.153.20]) by relay.skynet.be with ESMTP; 07 Jun 2015 14:13:00 +0200 Subject: Re: [PATCH v2] Make only user-specified executable and symbol filenames sticky From: Philippe Waroquiers To: Gary Benson Cc: gdb-patches@sourceware.org, Pedro Alves , Joel Brobecker , Doug Evans , Don Breazeal In-Reply-To: <1433503346-22517-1-git-send-email-gbenson@redhat.com> References: <20150603172339.GA24958@adacore.com> <1433503346-22517-1-git-send-email-gbenson@redhat.com> Content-Type: text/plain; charset="UTF-8" Date: Sun, 07 Jun 2015 12:13:00 -0000 Message-ID: <1433679213.2933.38.camel@soleil> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00094.txt.bz2 On Fri, 2015-06-05 at 12:22 +0100, Gary Benson wrote: > Built and regtested on RHEL6.6 x86_64. Finally, here are some tests with GDB gdbserver. There is also something strange. I launch 2 gdbserver: gdbserver :1234 /bin/sleep 10000 and gdbserver :1235 ./gdbserver_tests/sleepers 1000000 1000000 1000000 BSBSBSBS Then : (gdb) tar rem :1234 Remote debugging using :1234 Reading symbols from target:/bin/sleep...(no debugging symbols found)...done. Reading symbols from target:/lib/ld-linux.so.2...(no debugging symbols found)...done. 0x001f2850 in _start () from target:/lib/ld-linux.so.2 (gdb) detach Detaching from program: target:/bin/sleep, process 27572 Ending remote debugging. (gdb) tar rem :1235 `target:/bin/sleep' has disappeared; keeping its symbols. Remote debugging using :1235 Reading symbols from target:/home/philippe/valgrind/trunk_untouched/gdbserver_tests/sleepers...Can't read symbols from target:/home/philippe/valgrind/trunk_untouched/gdbserver_tests/sleepers: Invalid argument (gdb) So, as you can see, GDB cannot read the symbols for the second attach (while it has properly discovered the exec-file). Philippe