This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] massively speed up "info var foo" on large programs
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Doug Evans <dje at google dot com>
- Cc: Pedro Alves <palves at redhat dot com>, gdb-patches at sourceware dot org, ratmice at gmail dot com
- Date: Thu, 19 Jul 2012 11:17:52 +0200
- Subject: Re: [RFA] massively speed up "info var foo" on large programs
- References: <20120524175852.D38381E139C@ruffy2.mtv.corp.google.com> <CADPb22T1K5sHhddJtCg0iURbyL7oQngFBVJ23gAsfz58qWQ0Ww@mail.gmail.com> <CADPb22ROtFjAWBrCRVu-8QqHKBjqmR+FSRAonHQMAFPU=m02pA@mail.gmail.com> <4FBF47DD.4030100@redhat.com> <CADPb22Tnz7rK7VpwKW-cwMJm+tMwThoe5h=r=AH_sX=CwQat6g@mail.gmail.com> <4FC91A33.5040900@redhat.com> <CADPb22Tp5auHhj+-=qHW9XDEJfh-N1HjSBGYYYKVXutT-S0Zpw@mail.gmail.com> <4FCCCE27.2060804@redhat.com> <CADPb22Ts13qv-7Y=UckapJmECyheYAoXNTfFes7ZvqsALbcyhw@mail.gmail.com>
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."