From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19317 invoked by alias); 27 Dec 2009 02:16:39 -0000 Received: (qmail 19305 invoked by uid 22791); 27 Dec 2009 02:16:38 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f213.google.com (HELO mail-fx0-f213.google.com) (209.85.220.213) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Dec 2009 02:16:34 +0000 Received: by fxm5 with SMTP id 5so9353494fxm.8 for ; Sat, 26 Dec 2009 18:16:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.102.7.6 with SMTP id 6mr6240537mug.92.1261880192032; Sat, 26 Dec 2009 18:16:32 -0800 (PST) In-Reply-To: <8ac60eac0912260055o2d6bcb6cld7f8830e947cdd7@mail.gmail.com> References: <8ac60eac0912260055o2d6bcb6cld7f8830e947cdd7@mail.gmail.com> Date: Sun, 27 Dec 2009 02:16:00 -0000 Message-ID: Subject: Re: gdb symbol problem From: Hushan Jia To: Paul Pluzhnikov Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00161.txt.bz2 On Sat, Dec 26, 2009 at 4:55 PM, Paul Pluzhnikov w= rote: > 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. I invoke gdb like this: [hushan@hushan-t linux-2.6.31.3]$ gdb ./vmlinux GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) set remotebaud 115200 (gdb) target remote /dev/pts/5 (gdb) Remote debugging using /dev/pts/11 0xc0467118 in ?? () (gdb) where #0 =A00xc0467118 in ?? () #1 =A00xc077db2d in ?? () #2 =A00x00000000 in ?? () > My crystal ball tells me you didn't supply GDB with the executable you > are running. > > Cheers, > -- > Paul Pluzhnikov > --=20 Thanks & Regards, Hushan Jia