From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32137 invoked by alias); 27 Oct 2011 15:45:30 -0000 Received: (qmail 32117 invoked by uid 22791); 27 Oct 2011 15:45:28 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: sourceware.org Received: from david.siemens.de (HELO david.siemens.de) (192.35.17.14) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Oct 2011 15:45:11 +0000 Received: from mail1.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.13.6/8.13.6) with ESMTP id p9RFj6Jx019263; Thu, 27 Oct 2011 17:45:07 +0200 Received: from mchn199C.mchp.siemens.de ([139.25.109.49]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id p9RFj6JZ026975; Thu, 27 Oct 2011 17:45:06 +0200 Message-ID: <4EA97C82.1070201@siemens.com> Date: Thu, 27 Oct 2011 16:12:00 -0000 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Vimal CC: tromey , gdb@sourceware.org Subject: Re: Multiple breakpoint issue when debugging loadable kernel module References: <4EA89365.2010807@web.de> <4EA903DC.2080408@web.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-10/txt/msg00199.txt.bz2 On 2011-10-27 16:47, Vimal wrote: > On 27 October 2011 01:10, Jan Kiszka wrote: >> >> That's what I'm doing right now, but I'd like to use [1] and maybe write >> some more helpers. :) > > Jan, > > I have written a script for listing loaded modules as well and it is > possible with the gdb version 7.1, just before the faulty commit. > > I am not sure if gdb.selected_frame() is available, but, since > "modules" is a global variable, you could just use parse_and_eval. > That should work. :) Yeah, I just had to hack that version to accept python 2.7 - all features there, and my script works as-is. > > Good luck on your presentation! > Thanks! Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux