From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3042 invoked by alias); 5 Nov 2011 05:39:14 -0000 Received: (qmail 2770 invoked by uid 22791); 5 Nov 2011 05:39:11 -0000 X-SWARE-Spam-Status: No, hits=-7.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 05 Nov 2011 05:38:49 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pA55cnfR007257 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 5 Nov 2011 01:38:49 -0400 Received: from host1.jankratochvil.net (ovpn-116-24.ams2.redhat.com [10.36.116.24]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pA55clHi008352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 5 Nov 2011 01:38:48 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id pA55cjsB011999; Sat, 5 Nov 2011 06:38:46 +0100 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id pA55ciu7011371; Sat, 5 Nov 2011 06:38:44 +0100 Date: Sat, 05 Nov 2011 05:39:00 -0000 From: Jan Kratochvil To: Vimal Cc: Jan Kiszka , Tom Tromey , gdb@sourceware.org Subject: Re: Multiple breakpoint issue when debugging loadable kernel module Message-ID: <20111105053844.GA14861@host1.jankratochvil.net> References: <4EA89365.2010807@web.de> <4EAED7DC.5030805@siemens.com> <4EB010D1.9050209@web.de> <20111101201247.GA19887@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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-11/txt/msg00037.txt.bz2 On Sat, 05 Nov 2011 03:06:50 +0100, Vimal wrote: > As I am not experienced enough with this, would love some more > pointers. You can also send me offlist the .ko file. > Are you suggesting gcc does not insert debug information correctly? Yes. > Though this is possible, does it explain the fact that > the same .ko file without recompilation, works with gdb-7.1? Yes, as this buggy information is there only to direct GDB which CUs (Compilation Units) need to be expanded, if GDB expands them excessively it does not need this information, if GDB expands them optimally then the debug info bug starts to expose. I do not say this is the bug but I find it probable and checking the debug info is the most easy first step while troubleshooting it. Thanks, Jan