From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19898 invoked by alias); 30 Jan 2003 00:24:15 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 19872 invoked from network); 30 Jan 2003 00:24:15 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 30 Jan 2003 00:24:15 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h0TNspf18200 for ; Wed, 29 Jan 2003 18:54:51 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h0U0OFa01911 for ; Wed, 29 Jan 2003 19:24:15 -0500 Received: from dragon (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h0U0OEC07716 for ; Wed, 29 Jan 2003 19:24:14 -0500 Subject: linux, threads and auto-solib-add From: "Martin M. Hunt" To: gdb@sources.redhat.com Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 30 Jan 2003 00:24:00 -0000 Message-Id: <1043886256.1217.64.camel@Dragon> Mime-Version: 1.0 X-SW-Source: 2003-01/txt/msg00508.txt.bz2 I am trying to answer a question about debugging threaded applications when auto-solib-add is off. You cannot debug pthreads programs without first loading the symbols for libpthread. Given that, does it make sense to modify solid_add to always read the symbols for libpthread, if it is in the library list? Or is expected the user knows enough to always immediately do "shar libpthread" after starting debugging a threaded program? Martin