Re: combine bfd_lookup_symbol in solib-*.c

Pedro Alves
2011-08-29T16:33:41Z

Thanks.

On Monday 29 August 2011 17:22:49, Yao Qi wrote:
> +CORE_ADDR
> +gdb_bfd_lookup_symbol (bfd *abfd,
> + int (*match_sym) (asymbol *, const void *),
> + const void *data)
> +{

The patch is okay if you remove the "const"s. It's common to
want to increment a counter in `data' or something like that.

(Try `$ grep iterate_over_ *.h' to see other examples of the pattern).

--
Pedro Alves