From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19374 invoked by alias); 30 Jan 2003 10:20:16 -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 19367 invoked from network); 30 Jan 2003 10:20:15 -0000 Received: from unknown (HELO outbound0.sv.meer.net) (205.217.152.13) by 172.16.49.205 with SMTP; 30 Jan 2003 10:20:15 -0000 Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outbound0.sv.meer.net (8.12.6/8.12.6) with ESMTP id h0UAF4RP086534; Thu, 30 Jan 2003 02:15:05 -0800 (PST) (envelope-from dmose@mozilla.org) Received: from mozilla.org (dsl081-050-187.sfo1.dsl.speakeasy.net [64.81.50.187]) by mail.meer.net (8.12.1/8.12.1/meer) with ESMTP id h0UAF4LO016712; Thu, 30 Jan 2003 02:15:04 -0800 (PST) Message-ID: <3E38FB11.4020401@mozilla.org> Date: Thu, 30 Jan 2003 10:20:00 -0000 From: Dan Mosedale User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030129 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Buettner CC: "Martin M. Hunt" , gdb@sources.redhat.com Subject: Re: linux, threads and auto-solib-add References: <1043886256.1217.64.camel@Dragon> <1030130005010.ZM22518@localhost.localdomain> In-Reply-To: <1030130005010.ZM22518@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00514.txt.bz2 Kevin Buettner wrote: >On Jan 29, 4:24pm, Martin M. Hunt wrote: > > >>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? >> >> >I'm not in favor of this. > > >>Or is expected the user knows enough to always immediately do "shar >>libpthread" after starting debugging a threaded program? >> >> > >IMO, when the user disables auto-solib-add, then the user is >responsible for "hand" loading the shared libraries needed for >debugging the program. > Can you elaborate a bit on what it is about this you don't like? This doesn't strike me as terribly intuitive behavior, since (unlike most other shared libraries), not having the symbols loaded effects the operation of things other than just the stack trace commands (at least "info threads"). It's worth keeping in mind that with larger software projects (eg Mozilla), developers may be turning auto-solib-add off because, given performance constraints, there's no practical alternative if you don't have a suitably beefy machine. Dan