[pushed] gdb: Constify solib_find (Re: [RFA 2/8] Use class to manage BFD reference counts)

Tom Tromey tom@tromey.com
Tue Dec 20 18:05:00 GMT 2016


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Tom> I did this, but it's a bit ugly as solib_find isn't const-correct.

Pedro> That doesn't look hard to fix.  I've pushed in the patch below.
Pedro> What uglification does this allow removing?

Huh.  I had taken a stab at this but I thought I ran into some morass,
so I stopped.  Oh well.

Anyway what this enables is a change from &str[0] to str.c_str().

Tom



More information about the Gdb-patches mailing list