From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27768 invoked by alias); 19 Jul 2012 09:18:10 -0000 Received: (qmail 27753 invoked by uid 22791); 19 Jul 2012 09:18:09 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Jul 2012 09:17:54 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3Wd8n75xK7z4KK2s; Thu, 19 Jul 2012 11:19:23 +0200 (CEST) Received: from igel.home (ppp-88-217-104-196.dynamic.mnet-online.de [88.217.104.196]) by mail.mnet-online.de (Postfix) with ESMTPA id 3Wd8lN6HvdzbblX; Thu, 19 Jul 2012 11:17:52 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 6AC6FCA2A4; Thu, 19 Jul 2012 11:17:52 +0200 (CEST) From: Andreas Schwab To: Doug Evans Cc: Pedro Alves , gdb-patches@sourceware.org, ratmice@gmail.com Subject: Re: [RFA] massively speed up "info var foo" on large programs References: <20120524175852.D38381E139C@ruffy2.mtv.corp.google.com> <4FBF47DD.4030100@redhat.com> <4FC91A33.5040900@redhat.com> <4FCCCE27.2060804@redhat.com> X-Yow: I'm into SOFTWARE! Date: Thu, 19 Jul 2012 09:18:00 -0000 In-Reply-To: (Doug Evans's message of "Mon, 18 Jun 2012 17:57:42 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00326.txt.bz2 Doug Evans writes: > + set match_str {All functions matching regular expression "foo":[\r\n]*} > + if { "$libsepdebug" != "NO" } { > + append match_str {File .*/info-fun-solib[.]c:[\r\n]*} > + append match_str {int foo\(void\);[\r\n]*} > + } > + append match_str {Non-debugging symbols:[\r\n]*} > + append match_str "$hex *foo(@plt)?\[\r\n\]*" > + if { "$libsepdebug" == "NO" } { > + append match_str "$hex *foo\[\r\n\]*" > + } > + > + gdb_test "info fun foo" "$match_str" > +}} (gdb) info fun foo All functions matching regular expression "foo": Non-debugging symbols: 0x0000000010000578 00000011.plt_call.foo+0 0x00000000100008e8 foo@plt 0x00000fffb7fae73c .foo (gdb) FAIL: gdb.base/info-fun.exp: NO: info fun foo (gdb) info fun foo All functions matching regular expression "foo": File ./gdb.base/info-fun-solib.c: int foo(void); Non-debugging symbols: 0x0000000010000578 00000011.plt_call.foo+0 0x00000000100008e8 foo@plt (gdb) FAIL: gdb.base/info-fun.exp: IN: info fun foo (gdb) info fun foo All functions matching regular expression "foo": File ./gdb.base/info-fun-solib.c: int foo(void); Non-debugging symbols: 0x0000000010000578 00000011.plt_call.foo+0 0x00000000100008e8 foo@plt (gdb) FAIL: gdb.base/info-fun.exp: SEP: info fun foo Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."