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: Pedro Alves <palves at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org, ratmice at gmail dot com
- Date: Mon, 04 Jun 2012 16:03:03 +0100
- 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>
On 06/04/2012 05:06 AM, Doug Evans wrote:
> GDB's symbol support is a mess (IMO), and I wanted
> a name and usage to restrict it to the task at hand. Anything more
> general and I was pretty sure this patch would get bogged down.
That'd be a bit beyond what I requested. ;-)
> Later on I want to revamp the symbol API, but I don't want this patch
> tied down by that.
Certainly. That'd clearly need to be a separate change.
> (For example, I don't want to bubble up the semantics of
> demangle_for_lookup to the caller of this function. Here we have an
> msymbol, we know we have a mangled name. If you want, I can go with
> lookup_symbol_in_objfile but rename it to
> lookup_symbol_in_objfile_from_linkage_name or some such.)
That'd be fine with me. Thanks.
--
Pedro Alves