From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8J2fY514335 for linux-mips-outgoing; Tue, 18 Sep 2001 19:41:34 -0700 Received: from smtp.huawei.com ([61.144.161.21]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8J2fUe14331 for ; Tue, 18 Sep 2001 19:41:30 -0700 Received: from z15805 ([10.105.34.205]) by smtp.huawei.com (Netscape Messaging Server 4.15) with SMTP id GJW21N00.24G; Wed, 19 Sep 2001 10:39:23 +0800 Message-ID: <00fe01c140b4$ad3f9200$cd22690a@huawei.com> Reply-To: "Shaolin Zhang" From: "Shaolin Zhang" To: Cc: "Ernest Jih" , "\"recc stone\"" Subject: kgdb with linux-mips problem Date: Wed, 19 Sep 2001 10:42:08 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by oss.sgi.com id f8J2fUe14332 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello , Now we have some problems in using kgdb to debug the Linux-mips kernel on IDT 79s334A board. 1.I enabled the kernel startup option kgdb=on to debug the kernel setup. At first, the gdb on host pc connected to the target boards correctly. Then I use a few "n"(Next) command to debug the kernel, but the kernel seems to run out of my hands, as if I had executed some "c" command. I use "set debug remote 1" command to see the packets gdb send&receive: and find : the gdb send a "c" packet to the stub at the end of packet sequence. I guess that the gdb on the host pc send some wrong command , or it can't get right info to debug? 2.I want to debug some init_module function in module , like this : int init_module(void) { breakpoint(); // use the breakpoint function in kernel to get a break. my_functions(); } When I insmod this module, it through exception 9 (breakpoint), then I run "bt" command in gdb, but this time gdb report "can't find the start of function 0x....". Is this a gdb problem or gdb stub problem? BTW, when I first bootup the kernel and connect the gdb&stub ,the sample problem happened. From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <00fe01c140b4$ad3f9200$cd22690a@huawei.com> Reply-To: "Shaolin Zhang" From: "Shaolin Zhang" Subject: kgdb with linux-mips problem Date: Wed, 19 Sep 2001 10:42:08 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit Sender: owner-linux-mips@oss.sgi.com To: linux-mips@oss.sgi.com Cc: Ernest Jih , "\"recc stone\"" Message-ID: <20010919024208.W_44NbfIWW580kgf4_reBNHI8DUnQ5yA9ZZyFh8d1mg@z> Hello , Now we have some problems in using kgdb to debug the Linux-mips kernel on IDT 79s334A board. 1.I enabled the kernel startup option kgdb=on to debug the kernel setup. At first, the gdb on host pc connected to the target boards correctly. Then I use a few "n"(Next) command to debug the kernel, but the kernel seems to run out of my hands, as if I had executed some "c" command. I use "set debug remote 1" command to see the packets gdb send&receive: and find : the gdb send a "c" packet to the stub at the end of packet sequence. I guess that the gdb on the host pc send some wrong command , or it can't get right info to debug? 2.I want to debug some init_module function in module , like this : int init_module(void) { breakpoint(); // use the breakpoint function in kernel to get a break. my_functions(); } When I insmod this module, it through exception 9 (breakpoint), then I run "bt" command in gdb, but this time gdb report "can't find the start of function 0x....". Is this a gdb problem or gdb stub problem? BTW, when I first bootup the kernel and connect the gdb&stub ,the sample problem happened.