Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Doug Evans <dje@google.com>
Cc: Pedro Alves <palves@redhat.com>,
	 gdb-patches@sourceware.org,  ratmice@gmail.com
Subject: Re: [RFA] massively speed up "info var foo" on large programs
Date: Thu, 19 Jul 2012 09:18:00 -0000	[thread overview]
Message-ID: <m2d33sjein.fsf@igel.home> (raw)
In-Reply-To: <CADPb22Ts13qv-7Y=UckapJmECyheYAoXNTfFes7ZvqsALbcyhw@mail.gmail.com>	(Doug Evans's message of "Mon, 18 Jun 2012 17:57:42 -0700")

Doug Evans <dje@google.com> 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."


  reply	other threads:[~2012-07-19  9:18 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-24 17:59 Doug Evans
2012-05-24 21:28 ` Doug Evans
2012-05-25  4:29   ` Matt Rice
2012-05-25  8:21   ` Doug Evans
2012-05-25  8:51     ` Pedro Alves
2012-05-28  4:49       ` Doug Evans
2012-05-31 18:53         ` Doug Evans
2012-06-01 19:38         ` Pedro Alves
2012-06-04  4:06           ` Doug Evans
2012-06-04 15:03             ` Pedro Alves
2012-06-19  0:58               ` Doug Evans
2012-07-19  9:18                 ` Andreas Schwab [this message]
2012-07-30 17:29                   ` dje
2012-07-31  7:19                     ` Sergio Durigan Junior
2012-08-01  5:18                       ` Sergio Durigan Junior
2012-08-01 19:30                         ` dje
2012-05-25 10:04     ` Matt Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2d33sjein.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    --cc=ratmice@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox