From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28488 invoked by alias); 17 Sep 2005 03:00:02 -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 28344 invoked by uid 22791); 17 Sep 2005 02:59:57 -0000 Received: from host254.speakeasy.net (HELO douglas.highley-recommended.com) (216.231.62.254) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 17 Sep 2005 02:59:57 +0000 Received: from douglas.highley-recommended.com (localhost.localdomain [127.0.0.1]) by douglas.highley-recommended.com (8.13.4/8.13.4) with ESMTP id j8H2xtmj029427 for ; Fri, 16 Sep 2005 19:59:55 -0700 Received: (from dhighley@localhost) by douglas.highley-recommended.com (8.13.4/8.13.4/Submit) id j8H2xtPb029425 for gdb@sources.redhat.com; Fri, 16 Sep 2005 19:59:55 -0700 From: David Highley Message-Id: <200509170259.j8H2xtPb029425@douglas.highley-recommended.com> Subject: RedHat Advanced Server 3 and thread debugging To: gdb@sources.redhat.com Date: Sat, 17 Sep 2005 03:00:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2005-09/txt/msg00122.txt.bz2 We have implemented and a large application that is built on many different operating systems with platform native tools. For Linux we use the RedHat Advanced Server 3 update 3 platform. Development has a lot of problems debugging threaded applications on this platform. We build our applications static. Today one of the developers rebuilt an application using the apparently undocumented option -rdynamic and found that he was able to get better trace back information. Then dynamic link was done and he found that still more debugging information was available. Another thing they noticed was instead of one pid per thread there was just one pid. Which now leads us to wonder if we have the same thread model in a static link and a dynamic link. Can anyone shed some intelligent light on these observations. For a concept that is so widely used it seems difficult to get very good information on any platform.