This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed]: combine bfd_lookup_symbol in solib-*.c


On 08/30/2011 12:33 AM, Pedro Alves wrote:
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).


OK, "const"s are removed, and committed. http://sourceware.org/ml/gdb-cvs/2011-08/msg00135.html

--
Yao (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]