This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] symbol lookup cache
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Doug Evans <xdje42 at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 20 Dec 2014 12:43:49 +0200
- Subject: Re: [PATCH] symbol lookup cache
- Authentication-results: sourceware.org; auth=none
- References: <yjt2y4qrlqwa dot fsf at ruffy dot mtv dot corp dot google dot com> <CADPb22SwQGcJPQFsPy0w1EOurknejRDa1pPHB8KxRarbu1jY8g at mail dot gmail dot com> <m3oaqybvq0 dot fsf_-_ at sspiff dot org>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Doug Evans <xdje42@gmail.com>
> Date: Fri, 19 Dec 2014 23:56:23 -0800
>
> Here is an updated patch for the symbol cache,
> with docs and ChangeLog entry.
Thanks.
> +@kindex maint set symbol-cache-size
> +@kindex maint show symbol-cache-size
> +@cindex symbol cache size
> +@item maint set symbol-cache-size @var{size}
> +@item maint show symbol-cache-size
> +Set the size of the symbol cache to @var{size}.
> +The default size is intended to be good enough for debugging
> +most applications. This option exists to allow for experimenting
> +with different sizes.
The item is both for "set" and "show", but the text only says "Set".
Otherwise, the documentation parts are OK.
Btw, I wonder if this should be a user option, not a "maint" option.
The heuristics used to determine the cache size tend to be wrong in
some rare corner cases, so letting the user override this should be a
good thing, I think.