From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11588 invoked by alias); 8 Jan 2011 14:14:54 -0000 Received: (qmail 11580 invoked by uid 22791); 8 Jan 2011 14:14:54 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-iw0-f169.google.com (HELO mail-iw0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 08 Jan 2011 14:14:49 +0000 Received: by iwn40 with SMTP id 40so20057264iwn.0 for ; Sat, 08 Jan 2011 06:14:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.164.132 with SMTP id g4mr2078685icy.127.1294496086424; Sat, 08 Jan 2011 06:14:46 -0800 (PST) Received: by 10.42.174.131 with HTTP; Sat, 8 Jan 2011 06:14:46 -0800 (PST) In-Reply-To: References: Date: Sat, 08 Jan 2011 14:14:00 -0000 Message-ID: Subject: Re: some questions about gdb From: loody To: 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: 2011-01/txt/msg00026.txt.bz2 hi all: 2011/1/8 loody : > hi all: > I have some questions about using gdb > 1. I compile the kernel with -g but I cannot see the disassembly. > My pc increase 4 when I type 'n' but I cannot see the disassembly. > > Program received signal 0, Signal 0. > 0x8043e59c in kernel_entry () at arch/mips/kernel/head.S:97 > 97 =A0 =A0 =A0#else > (gdb) n > > Program received signal 0, Signal 0. > 0x8043e5a0 in kernel_entry () at arch/mips/kernel/head.S:97 > 97 =A0 =A0 =A0#else > (gdb) si > > Program received signal 0, Signal 0. > 0x8043e5a4 in kernel_entry () at arch/mips/kernel/head.S:97 > 97 =A0 =A0 =A0#else > (gdb) > > Did I miss any configuration? > > 2. I search gdb and which tell me there is a command, disassemble /m, > which can mix source and assembly. > But I use it on my mips platform, it said: > (gdb) disassemble /m irq_enter > A syntax error in expression, near `/m'. > (gdb) list > 276 =A0 =A0 void irq_enter(void) > 277 =A0 =A0 { > 278 =A0 =A0 =A0 =A0 =A0 =A0 int cpu =3D smp_processor_id(); > 279 > 280 =A0 =A0 =A0 =A0 =A0 =A0 rcu_irq_enter(); > 281 =A0 =A0 =A0 =A0 =A0 =A0 if (idle_cpu(cpu) && !in_interrupt()) { > 282 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 __irq_enter(); > 283 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tick_check_idle(cpu); > 284 =A0 =A0 =A0 =A0 =A0 =A0 } else > 285 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 __irq_enter(); > (gdb) > > 3. is any document about how to compile insight6.8.1 with mips gdb 7.2? > I google it and I found for arm version > http://old.nabble.com/patch-for-insight-6.8.1-to29485252.html > if I do the same thing for mips gdb, should I patch gdb? There is something I forget to say, I can successfully compile insight 6.8.1 for debug mips but source window is blank. so I want to try whether it will be fine if I change the default gdb from 6.8 to 7.2. What I only need to do is just change gdb folder with the new one. thanks a lot, miloody