From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9120 invoked by alias); 27 Dec 2009 03:45:30 -0000 Received: (qmail 9110 invoked by uid 22791); 27 Dec 2009 03:45:28 -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 03:45:22 +0000 Received: by fxm5 with SMTP id 5so9371291fxm.8 for ; Sat, 26 Dec 2009 19:45:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.127.4 with SMTP id e4mr4866910mun.32.1261885519469; Sat, 26 Dec 2009 19:45:19 -0800 (PST) In-Reply-To: <8ac60eac0912261936q49f50cf6ofabf2c56055621af@mail.gmail.com> References: <8ac60eac0912260055o2d6bcb6cld7f8830e947cdd7@mail.gmail.com> <8ac60eac0912261936q49f50cf6ofabf2c56055621af@mail.gmail.com> Date: Sun, 27 Dec 2009 03:45: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 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/msg00164.txt.bz2 On Sun, Dec 27, 2009 at 11:36 AM, Paul Pluzhnikov wrote: > On Sat, Dec 26, 2009 at 6:16 PM, Hushan Jia wrote: > >> I invoke gdb like this: >> >> [hushan@hushan-t linux-2.6.31.3]$ gdb ./vmlinux > > Oh, you are not debugging a regular application. You probably should > have mentioned that in your initial message. Sorry for forget the important information. > >> (gdb) target remote /dev/pts/5 > > What is on the "other end" of /dev/pts/5 ? Hi, the other end is console output redirected from qemu emulator, I have added "kgdboc=ttyS0,115200 kgdbwait" parameter to the kernel. > >>> My crystal ball tells me you didn't supply GDB with the executable you >>> are running. > > My crystal ball now tells me that you are stopped in a loadable kernel > module. AFAIU, GDB has no way to automatically find what is loaded > where in the target kernel. Remote debugging using /dev/pts/11 0xc0467118 in ?? () above message is output when I connected to pts initially, and the kernel is waiting for remote gdb's connect, so I dont think it is in a module. > > You might want to read: > http://sourceforge.net/projects/kgdb-light/ > http://sourceware.org/ml/gdb/2009-01/msg00037.html > > Cheers, > -- > Paul Pluzhnikov > -- Thanks & Regards, Hushan Jia