From owner-kgdb@oss.sgi.com Mon Jan 3 09:43:34 2000 Received: by oss.sgi.com id ; Mon, 3 Jan 2000 09:43:25 -0800 Received: from tower.ti.com ([192.94.94.5]:65471 "EHLO tower.ti.com") by oss.sgi.com with ESMTP id ; Mon, 3 Jan 2000 09:43:12 -0800 Received: from dlep8.itg.ti.com ([157.170.134.88]) by tower.ti.com (8.9.3/8.9.3) with ESMTP id LAA02030 for ; Mon, 3 Jan 2000 11:43:41 -0600 (CST) Received: from dlep8.itg.ti.com (localhost [127.0.0.1]) by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id LAA24599 for ; Mon, 3 Jan 2000 11:43:19 -0600 (CST) Received: from dlep4.itg.ti.com (dlep4.itg.ti.com [157.170.188.63]) by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id LAA24591 for ; Mon, 3 Jan 2000 11:43:18 -0600 (CST) Received: from ti.com (IDENT:jharrell@pcp97780pcs.sc.ti.com [158.218.100.100]) by dlep4.itg.ti.com (8.9.3/8.9.3) with ESMTP id LAA07823 for ; Mon, 3 Jan 2000 11:43:40 -0600 (CST) Message-ID: <3870E027.C7F3A0A@ti.com> Date: Mon, 03 Jan 2000 10:45:11 -0700 From: Jeff Harrell X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: kgdb@oss.sgi.com Subject: Kgdb questions Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-kgdb@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kgdb-outgoing I am currently working on a project to port the MIPS/Linux to Evaluation board and am interested in using kgdb to debug the kernel that we are using. The MIPS/ Linux kernel is 2.3.19 and looks like it has remote kernel debugging built into the kernel source. My question is the necessary code that I am going to need on both my development system and the target system. When connecting with kgdb to my MIPS target board, are there any modifications to the host side gdb (in my case this is a pentium box running linux)? Does this use standard gdb? Are the patches that are available on the sgi website (kgdb0.2-2.2.12) merged into the kernel that we are using? Any additional information that anybody can provide concerning kgdb and the debug process would be greatly appreciated. Thanks, Jeff -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jeff Harrell Work: (801) 619-6104 Broadband Access group/TI jharrell@ti.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From owner-kgdb@oss.sgi.com Mon Jan 3 15:26:15 2000 Received: by oss.sgi.com id ; Mon, 3 Jan 2000 15:26:05 -0800 Received: from web304.mail.yahoo.com ([128.11.68.235]:35078 "HELO web304.mail.yahoo.com") by oss.sgi.com with SMTP id ; Mon, 3 Jan 2000 15:25:49 -0800 Received: (qmail 9874 invoked by uid 60001); 3 Jan 2000 23:26:26 -0000 Message-ID: <20000103232626.9873.qmail@web304.mail.yahoo.com> Received: from [204.94.209.1] by web304.mail.yahoo.com; Mon, 03 Jan 2000 15:26:26 PST Date: Mon, 3 Jan 2000 15:26:26 -0800 (PST) From: Scott Foehner Subject: Re: Kgdb questions To: Jeff Harrell , kgdb@oss.sgi.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-kgdb@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kgdb-outgoing Jeff, You will need to get the source code for gdb if you don't already have it. You need to compile gdb to run on your pentium/linux box, but you need to specify the target architecture as MIPS/linux. I've done a similar thing here at SGI, but actually the opposite of what you want. I run gdb on an SGI MIPS machine, but my target machine (the one I am debugging) is ia32/linux. Compiling gdb for this was pretty simple if I remember correctly. Let me know if you run into any difficulties. Scott --- Jeff Harrell wrote: > I am currently working on a project to port the MIPS/Linux to Evaluation > board > and am interested in using kgdb to debug the kernel that we are using. > The MIPS/ > Linux kernel is 2.3.19 and looks like it has remote kernel debugging > built into the > kernel source. My question is the necessary code that I am going to > need on both > my development system and the target system. When connecting with kgdb > to my > MIPS target board, are there any modifications to the host side gdb (in > my case this > is a pentium box running linux)? Does this use standard gdb? Are the > patches that > are available on the sgi website (kgdb0.2-2.2.12) merged into the kernel > that we are > using? Any additional information that anybody can provide concerning > kgdb and > the debug process would be greatly appreciated. > > Thanks, > Jeff > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Jeff Harrell Work: (801) 619-6104 > Broadband Access group/TI > jharrell@ti.com > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://messenger.yahoo.com From owner-kgdb@oss.sgi.com Tue Jan 18 12:06:43 2000 Received: by oss.sgi.com id ; Tue, 18 Jan 2000 12:06:23 -0800 Received: from jester.ti.com ([192.94.94.1]:57316 "EHLO jester.ti.com") by oss.sgi.com with ESMTP id ; Tue, 18 Jan 2000 12:06:02 -0800 Received: from dlep9.itg.ti.com ([157.170.135.38]) by jester.ti.com (8.9.3/8.9.3) with ESMTP id OAA19740 for ; Tue, 18 Jan 2000 14:07:04 -0600 (CST) Received: from dlep9.itg.ti.com (localhost [127.0.0.1]) by dlep9.itg.ti.com (8.9.3/8.9.3) with ESMTP id OAA02937 for ; Tue, 18 Jan 2000 14:07:41 -0600 (CST) Received: from dlep4.itg.ti.com (dlep4.itg.ti.com [157.170.188.63]) by dlep9.itg.ti.com (8.9.3/8.9.3) with ESMTP id OAA02929 for ; Tue, 18 Jan 2000 14:07:41 -0600 (CST) Received: from ti.com (IDENT:jharrell@pcp97780pcs.sc.ti.com [158.218.100.100]) by dlep4.itg.ti.com (8.9.3/8.9.3) with ESMTP id OAA23732 for ; Tue, 18 Jan 2000 14:07:40 -0600 (CST) Message-ID: <3884C88A.60BC2AA0@ti.com> Date: Tue, 18 Jan 2000 13:09:47 -0700 From: Jeff Harrell X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: kgdb Subject: Kgdb question Content-Type: multipart/alternative; boundary="------------CEAED818F23515DA8BE8D2C1" Sender: owner-kgdb@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kgdb-outgoing --------------CEAED818F23515DA8BE8D2C1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am currently working on porting linux to a IDT development board that has a 79RC64475 MIPS processor on it and would like to run remote kgdb through one of the available serial ports on the board. I downloaded the latest version of the gdb (4.18, I believe) and looked through the gdb-stub code in the SGI/MIPS linux port. It looks like I should be able to debug through this setup. My question concerns the setup of gdb on the host processor. I set the target architecture to mips:4600 (This closely approximates the 64475) and setup the remotedebug variable (baud, etc.). When I look at the processor options (i.e., set processor), I see the following options: generic r3041 r3051 r3071 r3081 lsi33k Can I get away with using the "generic" version? What impacts does this have on debugging? Has anybody debugged using kgdb on a R4xxx type of processor? Any insights that anybody has would be greatly appreciated. Thanks, Jeff -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jeff Harrell Work: (801) 619-6104 Broadband Access group/TI jharrell@ti.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------CEAED818F23515DA8BE8D2C1 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I am currently working on porting linux to a IDT development board that has a 79RC64475 MIPS processor on it
and would like to run remote kgdb through one of the available serial ports on the board.  I downloaded the latest
version of the gdb (4.18, I believe) and looked through the gdb-stub code in the SGI/MIPS linux port.  It looks like
I should be able to debug through this setup.  My question concerns the setup of gdb on the host processor.  I set the
target architecture to mips:4600  (This closely approximates the 64475) and setup the remotedebug variable (baud,
etc.).   When I look at the processor options (i.e.,  set processor), I see the following options:

generic
r3041
r3051
r3071
r3081
lsi33k

Can I get away with using the "generic" version?  What impacts does this have on debugging?   Has anybody debugged
using kgdb on a R4xxx type of processor?  Any insights that anybody has would be greatly appreciated.

Thanks,
Jeff

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Harrell                    Work:  (801) 619-6104 
Broadband Access group/TI       
jharrell@ti.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  --------------CEAED818F23515DA8BE8D2C1-- From owner-kgdb@oss.sgi.com Thu Jan 20 16:37:35 2000 Received: by oss.sgi.com id ; Thu, 20 Jan 2000 16:37:15 -0800 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:51832 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Jan 2000 16:36:47 -0800 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id QAA00101 for ; Thu, 20 Jan 2000 16:41:13 -0800 (PST) mail_from (sfoehner@illini.engr.sgi.com) Received: from illini.engr.sgi.com (illini.engr.sgi.com [163.154.5.81]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id QAA72445 for <@cthulhu.engr.sgi.com:kgdb@oss.sgi.com>; Thu, 20 Jan 2000 16:38:27 -0800 (PST) mail_from (sfoehner@illini.engr.sgi.com) Received: (from sfoehner@localhost) by illini.engr.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) id QAA04942; Thu, 20 Jan 2000 16:38:16 -0800 (PST) Date: Thu, 20 Jan 2000 16:38:16 -0800 (PST) From: sfoehner@illini.engr.sgi.com (Scott Foehner) Message-Id: <10001201638.ZM4949@illini.engr.sgi.com> X-Mailer: Z-Mail-SGI (3.2S.3 08feb96 MediaMail) To: kgdb@oss.sgi.com Subject: new kGDB available Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-kgdb@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kgdb-outgoing There is now a 2.3 version of kGDB. My early-connect modifications have been picked up by the kGDB maintainer in the latest release, which is against 2.3.35. This version includes other general bug fixes, plus the ability to debug modules. This version is to be considered a beta version. The module debugging is not working 100% at this time. gdb actually needs to be patched for it to work completely. I will post more information as it becomes available. I think this patch should apply fine to kernel versions later than 2.3.35. I was able to apply it to 2.3.38 with no problems. This new patch is available from the maitainer (David Grothe ) at: ftp://www.gcom.com/pub/linux/src/kgdb-2.3.35 It is also available on oss.sgi.com at: ftp://oss.sgi.com/www/projects/kgdb/download/2.3 Scott -- Scott Foehner SGI sfoehner@engr.sgi.com Computer Systems Business Unit 650-933-3473 Core OS