From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130948 invoked by alias); 28 Aug 2019 18:54:41 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 130934 invoked by uid 89); 28 Aug 2019 18:54:41 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HTo:U*gdb, Srinath, srinath, H*Ad:U*gdb X-HELO: mail-io1-f52.google.com Received: from mail-io1-f52.google.com (HELO mail-io1-f52.google.com) (209.85.166.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 28 Aug 2019 18:54:40 +0000 Received: by mail-io1-f52.google.com with SMTP id b10so1738522ioj.2 for ; Wed, 28 Aug 2019 11:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=GpJN1lHqpJpQOeFsL/K3oMeNxa2a1HfgeUYsJfHnf64=; b=cnrfYI4mFyy3YOkaBV6RJ1oOzjJDaGOr4r392sPlpBIfCGAegKgHmNnewe7MmXq31I 57vkJwq1tFtvqwzVv1M2GqeCc1QttI+fxAm7QAtFqCC5cPi3/NtKQpM3ec6/CsuQjeKJ vV5kIiJCTq+vsXLgFjkUxvsHT8fqc0ZTHn5TxEPj+K73XvsME8XbwpOB1+iwtJqpdLk6 hxdCVdqNh7vRIFXC4ksxx6rpVYVZm7MR5oPiZsFmLjejitB98pBiec3xIdeq7ZZ4JynA PcLk44If/6fWk4rE/NqMmFlp2HLAkhK3ILsepl0tEav2vblsHE0SqIg6QuA7QXalLKGO vD/A== MIME-Version: 1.0 From: Srinath Avadhanula Date: Wed, 28 Aug 2019 18:54:00 -0000 Message-ID: Subject: Does GDB have an option to keep symbols loaded after detaching? To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00046.txt.bz2 Hi, Is there a way to tell GDB to keep all the shared library symbols loaded when it detaches from the inferior? That way if we attach to a new instance of the same executable with no (or very minor) modifications to any of the shared libraries, it should attach much quicker. As a comparison, I see that LLDB does seem to re-attach much faster than the first time attach. GDB takes almost the same time every time. Regards, Srinath