From owner-kgdb@oss.sgi.com Fri Mar 2 15:15:12 2001 Received: by oss.sgi.com id ; Fri, 2 Mar 2001 15:15:02 -0800 Received: from deliverator.sgi.com ([204.94.214.10]:38503 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 2 Mar 2001 15:14:48 -0800 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id PAA25972 for ; Fri, 2 Mar 2001 15:13:42 -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 (SGI-8.9.3/8.9.3) with ESMTP id PAA27923 for <@cthulhu.engr.sgi.com:kgdb@oss.sgi.com>; Fri, 2 Mar 2001 15:13:30 -0800 (PST) Received: (from sfoehner@localhost) by illini.engr.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) id PAA03048 for kgdb@oss.sgi.com; Fri, 2 Mar 2001 15:12:27 -0800 (PST) Date: Fri, 2 Mar 2001 15:12:27 -0800 (PST) From: sfoehner@illini.engr.sgi.com (Scott Foehner) Message-Id: <10103021512.ZM3082@illini.engr.sgi.com> X-Mailer: Z-Mail-SGI (3.2S.3 08feb96 MediaMail) To: kgdb@oss.sgi.com Subject: 2.2.18 patch now 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 A kGDB patch against 2.2.18 is now available. http://oss.sgi.com/projects/kgdb Scott -- Scott Foehner SGI Linux Scalability sfoehner@sgi.com 650.933.3473 From owner-kgdb@oss.sgi.com Mon Mar 5 09:52:21 2001 Received: by oss.sgi.com id ; Mon, 5 Mar 2001 09:52:02 -0800 Received: from domino2.tantau.com ([217.5.132.141]:5395 "EHLO domino2.Tantau.Com") by oss.sgi.com with ESMTP id ; Mon, 5 Mar 2001 09:51:53 -0800 Received: from 724.com ([172.16.4.148]) by domino2.Tantau.Com (Lotus Domino Release 5.0.4a) with ESMTP id 2001030518584716:847 ; Mon, 5 Mar 2001 18:58:47 +0100 Message-ID: <3AA3D233.53D5839D@724.com> Date: Mon, 05 Mar 2001 18:51:47 +0100 From: Stephan Kauss Reply-To: SKauss@724.com X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.10 i686) X-Accept-Language: en MIME-Version: 1.0 To: kgdb@oss.sgi.com Subject: break point or crash didn't match to my sources X-MIMETrack: Itemize by SMTP Server on Domino2/Tantau(Release 5.0.4a |July 24, 2000) at 03/05/2001 06:58:47 PM, Serialize by Router on Domino2/Tantau(Release 5.0.4a |July 24, 2000) at 03/05/2001 06:58:55 PM, Serialize complete at 03/05/2001 06:58:55 PM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Sender: owner-kgdb@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kgdb-outgoing Hi kGDB folks, I installed successfully the kGDB on a linux 2.2.18 kernel. After loading my modules I interrupt gdb and add the symbols from the modules to gdb (mod-add-symbols 0xc48b0000 oca.c) And set my break point's. break OCL_Free Breakpoint 2 at 0xc48c0436: file ocss.c, line 393. OCL_Free start at line 93 not 393 After a contiune and calling my module gdb stop on the wrong line number : Breakpoint 2, 0xc48c0436 in () at ocss.c:393 393 } /* OCL_ParametersVerify */ (gdb) Having typed "cont" my kernel crash with this message : Program received signal SIGSEGV, Segmentation fault. 0xc4f29a5e in capslip_id () at tam_linux.c:1784 1784 } (gdb) where #0 0xc4f29a5e in capslip_id () at tam_linux.c:1784 #1 0xc4f3a3fc in ?? () #2 0xc01123c8 in timer_bh () at sched.c:1117 The function capslip_id is not in file tam_linux.c. Any idea what I do wrong ? Thanks Stephan // A rainy day on a boat is better than a sunny day in the office // strings attachment.doc | more From owner-kgdb@oss.sgi.com Mon Mar 5 17:42:03 2001 Received: by oss.sgi.com id ; Mon, 5 Mar 2001 17:41:54 -0800 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:64841 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 5 Mar 2001 17:41:38 -0800 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id RAA05601 for ; Mon, 5 Mar 2001 17:51:20 -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 (SGI-8.9.3/8.9.3) with ESMTP id RAA12327 for <@cthulhu.engr.sgi.com:kgdb@oss.sgi.com>; Mon, 5 Mar 2001 17:40:21 -0800 (PST) Received: (from sfoehner@localhost) by illini.engr.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) id RAA07460 for kgdb@oss.sgi.com; Mon, 5 Mar 2001 17:39:13 -0800 (PST) Date: Mon, 5 Mar 2001 17:39:13 -0800 (PST) From: sfoehner@illini.engr.sgi.com (Scott Foehner) Message-Id: <10103051739.ZM7446@illini.engr.sgi.com> In-Reply-To: Stephan Kauss "break point or crash didn't match to my sources" (Mar 5, 6:51pm) References: <3AA3D233.53D5839D@724.com> X-Mailer: Z-Mail-SGI (3.2S.3 08feb96 MediaMail) To: kgdb@oss.sgi.com Subject: Re: break point or crash didn't match to my sources 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 On Mar 5, 6:51pm, Stephan Kauss wrote: > Subject: break point or crash didn't match to my sources > Hi kGDB folks, > > I installed successfully the kGDB on a linux 2.2.18 kernel. > After loading my modules I interrupt gdb and add the symbols from the > modules to gdb ... > > Any idea what I do wrong ? I don't personally have experience debugging modules, but the subject has been brought up here a few times before. You can check the mail archives on the web site. There is also some help on the kgdb.sourceforge.net website. Perhaps someone here who has done module debugging before can be of assistance? Scott -- Scott Foehner SGI Linux Scalability sfoehner@sgi.com 650.933.3473