From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11092 invoked by alias); 16 Oct 2005 16:58:59 -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 11084 invoked by uid 22791); 16 Oct 2005 16:58:56 -0000 Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 16 Oct 2005 16:58:56 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 2DFB7E8A4; Sun, 16 Oct 2005 18:58:50 +0200 (CEST) From: Andreas Schwab To: "Dmitry S. Vasilchenko" Cc: gdb@sources.redhat.com Subject: Re: ppc64 gdbserver NPTL problem References: X-Yow: I know things about TROY DONAHUE that can't even be PRINTED!! Date: Sun, 16 Oct 2005 16:58:00 -0000 In-Reply-To: (Dmitry S. Vasilchenko's message of "Sun, 16 Oct 2005 19:00:54 +0400") Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-10/txt/msg00094.txt.bz2 "Dmitry S. Vasilchenko" writes: > I have met some problems with gdbserver and multithread debugging. > The problem is that on ppc64 td_ta_event_addr from glibc returns the > pointer to function descriptor, not the address of the function. As a > result, gdbserver installs breakpoint at the memory address in .opd > section, not at the function glibs expects. So gdbserver will never > receive information about new threads creation on ppc64. > > It is easy to fix, but I am not sure, maybe this should be fixed in > glibc. Your thoughts? I think gdbserver needs to do the equivalent of gdbarch_convert_from_func_ptr_addr, as it is done in linux-thread-db.c:enable_thread_event. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."