From owner-kgdb@oss.sgi.com Tue Jul 18 09:24:56 2000 Received: by oss.sgi.com id ; Tue, 18 Jul 2000 09:24:48 -0700 Received: from exchange.bocaresearch.com ([208.60.8.131]:5644 "HELO exchange.bocaresearch.com") by oss.sgi.com with SMTP id ; Tue, 18 Jul 2000 09:24:17 -0700 Received: by exchange.bocaresearch.com with Internet Mail Service (5.5.2650.21) id ; Tue, 18 Jul 2000 12:25:15 -0400 Message-ID: <845918DDC884D3119E1A0008C78792C56416EB@exchange.bocaresearch.com> From: johno@inprimis.com To: kgdb@oss.sgi.com Subject: kGDB Kernel Patch for 2.2.14-5.0 Date: Tue, 18 Jul 2000 12:25:14 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BFF0D4.C0973532" Sender: owner-kgdb@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kgdb-outgoing This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF0D4.C0973532 Content-Type: text/plain; charset="iso-8859-1" Hello Is there a kGDB kernel patch available for Kernel level 2.2.14-5.0? If not can the 2.2.12 patch be applied to the newer kernel? I am porting a network device driver to Red Hat 6.2 and need kernel debug capabilities. Any information you can supply would be extremely appreciated. Thanks! John John O'Neil, Sr. Software Engineer Inprimis Technologies 1601 Clint Moore Rd, Boca Raton, FL 33487 p: (561) 997-6227x610 f: (561) 998-0596 http://www.inprimis.com ------_=_NextPart_001_01BFF0D4.C0973532 Content-Type: text/html; charset="iso-8859-1"
Hello
 
Is there a kGDB kernel patch available for Kernel level 2.2.14-5.0? If not can the 2.2.12 patch be applied
to the newer kernel? I am porting a network device driver to Red Hat 6.2 and need kernel debug capabilities. Any information you can supply would be extremely appreciated. Thanks!
 
John
 
 

John O'Neil, Sr. Software Engineer
Inprimis Technologies
1601 Clint Moore Rd, Boca Raton, FL 33487
p: (561) 997-6227x610 f: (561) 998-0596
http://www.inprimis.com

 
------_=_NextPart_001_01BFF0D4.C0973532-- From owner-kgdb@oss.sgi.com Thu Jul 20 12:20:05 2000 Received: by oss.sgi.com id ; Thu, 20 Jul 2000 12:19:56 -0700 Received: from magic.adaptec.com ([208.236.45.80]:5873 "EHLO magic.adaptec.com") by oss.sgi.com with ESMTP id ; Thu, 20 Jul 2000 12:19:27 -0700 Received: from kingdom.adaptec.com (kingdom.adaptec.com [162.62.50.10]) by magic.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id MAA01115 for ; Thu, 20 Jul 2000 12:18:59 -0700 (PDT) Received: from aimexc01.corp.adaptec.com ([162.62.62.41]) by kingdom.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id MAA13578 for ; Thu, 20 Jul 2000 12:18:59 -0700 (PDT) Received: by aimexc01.corp.adaptec.com with Internet Mail Service (5.5.2650.21) id <38XCFSRV>; Thu, 20 Jul 2000 12:18:57 -0700 Message-ID: From: "Boerner, Brian" To: "'kgdb@oss.sgi.com'" Subject: Having problems getting it working Date: Thu, 20 Jul 2000 12:14:29 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-kgdb@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kgdb-outgoing I'm having problems getting kgdb working and was hoping someone could point out what I'm doing wrong. Remote gdb is really my last hope. I tried getting crash dumps working, and that failed. I tried the kernel debugger and that failed. I'm hoping I can get this up in the air so I can work on some issues this week. :-) I've got the patch for RH 6.2 kernel and it applied clean. No problems there. Built the kernel and selected the CONFIG_GDB option. make dep, make bzImage, make modules, blah blah. All worked fine. I put an entry in my lilo.conf file that reads: boot=/dev/sda map=/boot/map install=/boot/boot.b prompt timeout=50 default=linux-gdb image=/boot/vmlinuz-2.2.14-gdb append="gdb gdbttyS=0 gdbbaud=9600" label=linux-gdb initrd=/boot/initrd-2.2.14-5.0smp.img read-only root=/dev/sda1 I then reran lilo (with no complaints) and rebooted my machine. On my (dare I say it) NT box. I'm running CRT with a serial cable hooked from com2 on my NT box to com1 on my linux box. The settings for my term are: port: com2 baud: 9600 data: 8 part: none stop: 1 no flow control. When I reboot the linux-gdb kernel it never stops. It just happily boots up and never asks for input from the serial port. I've tried removing the append string and specifying it on the command line with no luck. Any Ideas what I'm doing wrong? I've signed up for the list, but haven't had a response back, so if you reply please copy me. Thanks. -bmb- Brian M. Boerner System Software Developer Adaptec, Inc. Nashua, NH 03060 (603) 579-4625 From owner-kgdb@oss.sgi.com Fri Jul 21 04:13:41 2000 Received: by oss.sgi.com id ; Fri, 21 Jul 2000 04:13:31 -0700 Received: from web314.mail.yahoo.com ([216.115.105.79]:40965 "HELO web314.mail.yahoo.com") by oss.sgi.com with SMTP id ; Fri, 21 Jul 2000 04:12:56 -0700 Message-ID: <20000721111229.8853.qmail@web314.mail.yahoo.com> Received: from [132.230.9.55] by web314.mail.yahoo.com; Fri, 21 Jul 2000 04:12:29 PDT Date: Fri, 21 Jul 2000 04:12:29 -0700 (PDT) From: Scott Foehner Subject: Re: Having problems getting it working To: "Boerner, Brian" , "'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 > When I reboot the linux-gdb kernel it never stops. It just happily boots up > and never asks for input from the serial port. > > I've tried removing the append string and specifying it on the command line > with no luck. There was a bug in that the patch was using strcmp instead of strncmp to check for the parameters. Does the patch you use use strncmp in main.c to check for the gdb parameters? Scott __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From owner-kgdb@oss.sgi.com Fri Jul 21 06:36:52 2000 Received: by oss.sgi.com id ; Fri, 21 Jul 2000 06:36:43 -0700 Received: from magic.adaptec.com ([208.236.45.80]:46561 "EHLO magic.adaptec.com") by oss.sgi.com with ESMTP id ; Fri, 21 Jul 2000 06:36:05 -0700 Received: from kingdom.adaptec.com (kingdom.adaptec.com [162.62.50.10]) by magic.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id GAA18026; Fri, 21 Jul 2000 06:34:53 -0700 (PDT) Received: from aimexc01.corp.adaptec.com ([162.62.62.41]) by kingdom.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id GAA08091; Fri, 21 Jul 2000 06:34:48 -0700 (PDT) Received: by aimexc01.corp.adaptec.com with Internet Mail Service (5.5.2650.21) id <38XCF7BN>; Fri, 21 Jul 2000 06:34:46 -0700 Message-ID: From: "Boerner, Brian" To: "'Scott Foehner'" , "'kgdb@oss.sgi.com'" Subject: RE: Having problems getting it working Date: Fri, 21 Jul 2000 06:30:13 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain Sender: owner-kgdb@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kgdb-outgoing Ugh.. I got it working. Someone came in and mucked with the system when I wasn't around. They disabled all the serial ports. Never would have suspected that. Just noticed they didn't come up during a reboot. I'm happy now!! Thanks for all your help scott. -bmb- > -----Original Message----- > From: Scott Foehner [mailto:sfoehner@yahoo.com] > Sent: Friday, July 21, 2000 7:12 AM > To: Boerner, Brian; 'kgdb@oss.sgi.com' > Subject: Re: Having problems getting it working > > > > When I reboot the linux-gdb kernel it never stops. It just > happily boots up > > and never asks for input from the serial port. > > > > I've tried removing the append string and specifying it on > the command line > > with no luck. > > There was a bug in that the patch was using strcmp instead of > strncmp to > check for the parameters. Does the patch you use use strncmp > in main.c to > check for the gdb parameters? > > Scott > > __________________________________________________ > Do You Yahoo!? > Get Yahoo! Mail - Free email you can access from anywhere! > http://mail.yahoo.com/ > From owner-kgdb@oss.sgi.com Fri Jul 21 12:51:24 2000 Received: by oss.sgi.com id ; Fri, 21 Jul 2000 12:51:14 -0700 Received: from magic.adaptec.com ([208.236.45.80]:58518 "EHLO magic.adaptec.com") by oss.sgi.com with ESMTP id ; Fri, 21 Jul 2000 12:50:38 -0700 Received: from kingdom.adaptec.com (kingdom.adaptec.com [162.62.50.10]) by magic.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id MAA25853 for ; Fri, 21 Jul 2000 12:50:10 -0700 (PDT) Received: from aimexc01.corp.adaptec.com ([162.62.62.41]) by kingdom.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id MAA21744 for ; Fri, 21 Jul 2000 12:50:10 -0700 (PDT) Received: by aimexc01.corp.adaptec.com with Internet Mail Service (5.5.2650.21) id <38XCGAZS>; Fri, 21 Jul 2000 12:50:07 -0700 Message-ID: From: "Boerner, Brian" To: "'kgdb@oss.sgi.com'" Subject: loading the symbol table for remote gdb. Date: Fri, 21 Jul 2000 12:45:32 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-kgdb@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kgdb-outgoing I'm relatively new to linux so everything appears to be a little bit backwards from what I'm used to. I've spent the better part of my career working on the sparc architecture. My problem is getting the symbol table to show up remotely. I've built the kernel and the modules on the target system. After installing the modules and the kernel, I made a tar file of the source tree and objects and ftped it over to the remote system. I've now got duplicate source trees. I run gdb remotely in the /usr/src/linux-2.2.14-gdb directory. After conenction is established, I load the vmlinux file (gdb) load vmlinux Loading section .text, size 0xb2997 lma 0x80100000 Loading section .text.lock, size 0x2e01 lma 0x801b2998 Loading section .rodata, size 0x22c80 lma 0x801b57a0 Loading section .kstrtab, size 0x2525 lma 0x801d8420 Loading section __ex_table, size 0xcb8 lma 0x801da950 Loading section __ksymtab, size 0x1440 lma 0x801db608 Loading section .data, size 0x29334 lma 0x801dca60 Loading section .data.init_task, size 0x2000 lma 0x80206000 Ignoring packet error, continuing... Loading section .text.init, size 0xac82 lma 0x80208000 Then the system target reboots itself. I'm guessing it takes so long for vmlinux to load, that it times out and reboots. Any Guesses ? -bmb- Brian M. Boerner System Software Developer Adaptec, Inc. Nashua, NH 03060 (603) 579-4625 From owner-kgdb@oss.sgi.com Tue Jul 25 08:37:57 2000 Received: by oss.sgi.com id ; Tue, 25 Jul 2000 08:37:48 -0700 Received: from [204.221.117.100] ([204.221.117.100]:24595 "EHLO mail.digieurope.com") by oss.sgi.com with ESMTP id ; Tue, 25 Jul 2000 08:37:23 -0700 Received: by mail.digieurope.com with Internet Mail Service (5.5.2650.21) id ; Tue, 25 Jul 2000 17:38:51 +0200 Message-ID: From: "Kneemeyer, Ralf" To: "KGDB (E-Mail)" Subject: new to kgdb Date: Tue, 25 Jul 2000 17:38:50 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="ISO-8859-1" Sender: owner-kgdb@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kgdb-outgoing Hi, I'm new to using kgdb and need to ask some questions. Where can I get some detailed information on kgdb/gdb setup ? I compiled kernel 2.2.14 with kgdb-patch. It is possible to debug by pressing break now. Then I configured an append "gdb gdbttyS=1 gdbbaud=9600" to do remote debugging. The serial connection via null-cable was tested with minicom and seems ok. How do I have to start gdb on the remote machine now ? How can I stop the "to-debug" machine then ? Thanks for some help ! Ralf Kneemeyer