From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6577 invoked by alias); 29 Dec 2010 03:07:25 -0000 Received: (qmail 6567 invoked by uid 22791); 29 Dec 2010 03:07:24 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Dec 2010 03:07:17 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oBT373aQ025034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 28 Dec 2010 22:07:03 -0500 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oBT37171012654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Dec 2010 22:07:02 -0500 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id oBT3702A012155; Wed, 29 Dec 2010 04:07:00 +0100 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id oBT36xou012154; Wed, 29 Dec 2010 04:06:59 +0100 Date: Wed, 29 Dec 2010 03:07:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: Michael Snyder , Edjunior Barbosa Machado , "gdb@sourceware.org" Subject: Re: next/step after main() function's return Message-ID: <20101229030658.GA11911@host1.dyn.jankratochvil.net> References: <4D19144E.1030504@linux.vnet.ibm.com> <20101228052055.GY2618@adacore.com> <20101228082324.GA29391@host0.dyn.jankratochvil.net> <4D1A6C99.6050202@vmware.com> <20101229022609.GA2413@adacore.com> <20101229023654.GA9738@host1.dyn.jankratochvil.net> <20101229024940.GB2413@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101229024940.GB2413@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 X-SW-Source: 2010-12/txt/msg00087.txt.bz2 On Wed, 29 Dec 2010 03:49:40 +0100, Joel Brobecker wrote: > > It can be, depending on the OS: > [...] > > fedora-release-14-1.noarch > > glibc-debuginfo-2.12.90-21.x86_64 > > Indeed! Does glic come with debug info by default on Fedora? Not in a default installation but `debuginfo-install glibc' will provide it. In fact `debuginfo-install any package' will always provide also glibc due to the obvious package dependencies. Also in Fedora GDB there is a rpm-specific patch http://pkgs.fedoraproject.org/gitweb/?p=gdb.git;a=blob_plain;f=gdb-6.6-buildid-locate-rpm.patch;hb=master on top of [patch 1/2] build id http://sourceware.org/ml/gdb-patches/2010-11/msg00353.html providing a suggestion: gdb-7.2-26.fc14.x86_64 $ echo 'main(){}' | gcc -x c -; gdb -q ./a.out -ex start Temporary breakpoint 1, 0x0000000000400478 in main () Missing separate debuginfos, use: debuginfo-install glibc-2.12.90-21.x86_64 (gdb) _ and therefore I guess users may have it commonly installed. Thanks, Jan