From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5206 invoked by alias); 31 Oct 2011 17:18:12 -0000 Received: (qmail 5171 invoked by uid 22791); 31 Oct 2011 17:18:11 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fmmailgate02.web.de (HELO fmmailgate02.web.de) (217.72.192.227) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 31 Oct 2011 17:17:51 +0000 Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate02.web.de (Postfix) with ESMTP id C90EA1B9D9D42 for ; Mon, 31 Oct 2011 18:17:49 +0100 (CET) Received: from mchn199C.mchp.siemens.de ([88.66.121.220]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0MejSy-1RedAD1HPE-00ODr7; Mon, 31 Oct 2011 18:17:49 +0100 Message-ID: <4EAED83B.6080504@web.de> Date: Mon, 31 Oct 2011 17:20: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: Tom Tromey CC: Vimal , 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: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3B4F9ED9E744B9C8086C7C43" 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/msg00239.txt.bz2 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3B4F9ED9E744B9C8086C7C43 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Content-length: 840 On 2011-10-27 21:38, Tom Tromey wrote: >>>>>> "Jan" =3D=3D Jan Kiszka writes: >=20 > Jan> [1] http://permalink.gmane.org/gmane.comp.gdb.devel/25898 >=20 > Nice. >=20 > To answer your question there: >=20 > Jan> (does someone know how to switch of the add-symbol-file output?) >=20 > From Python you can to gdb.execute(..., to_string =3D True). > I forget when we added this parameter. >=20 > From the CLI you can use the 'set logging' family of commands to > temporarily disable output. >=20 >=20 > From the code: >=20 > def offset_of(type, field): > return gdb.parse_and_eval('(unsigned long)&( (' + str(type) + ' *)0)->' = + str(field)) >=20 > You can look up the field in the type and get the offset more directly. > But this works too. Yeah, works nicely. Was unfortunately not yet available in 7.1. Thanks, Jan --------------enig3B4F9ED9E744B9C8086C7C43 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 262 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6u2DsACgkQitSsb3rl5xQXYgCghZs2mvK3QxxyhxM39QzLITEr Z44An2i+Fmo4/+MBhBNxLP5eU332M4OH =y9SP -----END PGP SIGNATURE----- --------------enig3B4F9ED9E744B9C8086C7C43--