From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10316 invoked by alias); 27 Oct 2011 19:38:40 -0000 Received: (qmail 10307 invoked by uid 22791); 27 Oct 2011 19:38:39 -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; Thu, 27 Oct 2011 19:38:22 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9RJcLTY009963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 Oct 2011 15:38:21 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p9RJcKgC023399; Thu, 27 Oct 2011 15:38:20 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p9RJcJuv028701; Thu, 27 Oct 2011 15:38:19 -0400 From: Tom Tromey To: Jan Kiszka Cc: Vimal , gdb@sourceware.org Subject: Re: Multiple breakpoint issue when debugging loadable kernel module References: <4EA89365.2010807@web.de> <4EA903DC.2080408@web.de> Date: Fri, 28 Oct 2011 00:16:00 -0000 In-Reply-To: <4EA903DC.2080408@web.de> (Jan Kiszka's message of "Thu, 27 Oct 2011 09:10:20 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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/msg00206.txt.bz2 >>>>> "Jan" == Jan Kiszka writes: Jan> [1] http://permalink.gmane.org/gmane.comp.gdb.devel/25898 Nice. To answer your question there: Jan> (does someone know how to switch of the add-symbol-file output?) >From Python you can to gdb.execute(..., to_string = True). I forget when we added this parameter. >From the CLI you can use the 'set logging' family of commands to temporarily disable output. >From the code: def offset_of(type, field): return gdb.parse_and_eval('(unsigned long)&( (' + str(type) + ' *)0)->' + str(field)) You can look up the field in the type and get the offset more directly. But this works too. Tom