From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9899 invoked by alias); 26 Dec 2009 08:55:52 -0000 Received: (qmail 9891 invoked by uid 22791); 26 Dec 2009 08:55:51 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Dec 2009 08:55:44 +0000 Received: from wpaz9.hot.corp.google.com (wpaz9.hot.corp.google.com [172.24.198.73]) by smtp-out.google.com with ESMTP id nBQ8thAP021626 for ; Sat, 26 Dec 2009 00:55:43 -0800 Received: from qyk4 (qyk4.prod.google.com [10.241.83.132]) by wpaz9.hot.corp.google.com with ESMTP id nBQ8tesc025935 for ; Sat, 26 Dec 2009 00:55:41 -0800 Received: by qyk4 with SMTP id 4so3862697qyk.7 for ; Sat, 26 Dec 2009 00:55:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.31.16 with SMTP id w16mr3398714qac.336.1261817740120; Sat, 26 Dec 2009 00:55:40 -0800 (PST) In-Reply-To: References: Date: Sat, 26 Dec 2009 08:55:00 -0000 Message-ID: <8ac60eac0912260055o2d6bcb6cld7f8830e947cdd7@mail.gmail.com> Subject: Re: gdb symbol problem From: Paul Pluzhnikov To: Hushan Jia Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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: 2009-12/txt/msg00157.txt.bz2 On Tue, Dec 22, 2009 at 8:47 PM, Hushan Jia wrote: > Hi, I compiled the code with -g -ggdb flags, but it seems gdb cannot > show symbols > correctly, instead it shows all ?? > > Remote debugging using /dev/pts/11 > 0xc0467118 in ?? () > (gdb) where > #0 =A00xc0467118 in ?? () > #1 =A00xc077db2d in ?? () > #2 =A00x00000000 in ?? () > > how to solve this problem? It might help for you to provide your complete GDB session, from invocation to the "failing" where command. My crystal ball tells me you didn't supply GDB with the executable you are running. Cheers, --=20 Paul Pluzhnikov