From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8779 invoked by alias); 15 Apr 2013 14:21:17 -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 8768 invoked by uid 89); 15 Apr 2013 14:21:16 -0000 X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W autolearn=ham version=3.3.1 Received: from ihemail2.lucent.com (HELO ihemail2.lucent.com) (135.245.0.35) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 15 Apr 2013 14:21:04 +0000 Received: from fr712usmtp2.zeu.alcatel-lucent.com (h135-239-2-42.lucent.com [135.239.2.42]) by ihemail2.lucent.com (8.13.8/IER-o) with ESMTP id r3FEL069010415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 15 Apr 2013 09:21:02 -0500 (CDT) Received: from destgd0d00539.de.alcatel-lucent.com (destgd0d00539.de.alcatel-lucent.com [149.204.131.198]) by fr712usmtp2.zeu.alcatel-lucent.com (GMO) with ESMTP id r3FEKxZD022840 for ; Mon, 15 Apr 2013 16:21:00 +0200 From: Klaus Zeitler To: gdb@sourceware.org Subject: Shared library call problems on PowerPC with gdb 7.2 Reply-To: Klaus.Zeitler@alcatel-lucent.com X-Drdoom-Fodder: crash security passwd satan root CERT Date: Mon, 15 Apr 2013 14:21:00 -0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2013-04/txt/msg00036.txt.bz2 Hello, I'm trying to debug a shared library on PowerPC (P3041). Unfortunately it is nearly impossible to step through functions in the shared library, cause neither "next" nor "step" work as expected. e.g. I set a breakpoint at a function in the shared lib and when I try now to step through the code (with "next" or "step") I get: "Single stepping until exit from function call___do_global_ctors_aux, which has no line number information." I can return with "finish" to my function, but the same thing happens for every "next" or "step". I found a few reports about this problem from 2007 and 2008 (but it seems as if they were solved long ago), e.g. from Ulrich Weigand: http://sourceware.org/ml/gdb-patches/2008-04/msg00639.html I'm using gdb 7.2, the exact version is: GNU gdb (Wind River Linux Sourcery G++ 4.4a-341) 7.2.50.20100908-cvs Maybe the gcc/binutils version is also relevant: powerpc-wrs-linux-gnu-gcc (Wind River Linux Sourcery G++ 4.4a-341) 4.4.1 Thanks Klaus --=20 ------------------------------------------------------------------- | Klaus Zeitler Alcatel-Lucent | | Lorenzstrasse 10 70435 Stuttgart, Germany | | Department: Building: 005 Office: 3/171 | | Telefon: +49 711821 43898 | | Email: klaus.zeitler@alcatel-lucent.com | | | | Alcatel-Lucent Deutschland AG | | Sitz der Gesellschaft: Stuttgart =C2=B7 Amtsgericht Stuttgart HRB 4026 | | Vorsitzender des Aufsichtsrates: Michael Oppenhoff | | Vorstand: | | Alf Henryk Wulf (Vorsitzender) =C2=B7 Dr. Rainer Fechner | ------------------------------------------------------------------- --- Nothing is like it seems, but everything is exactly like it is. -- Yogi Ber= ra