[gdb] Add & in catch in svr4_handle_solib_event

In svr4_handle_solib_event I noticed:
...
	catch (const gdb_exception_error)
...

This seems to be the only place were we do this, elsewhere we have:
...
	catch (const gdb_exception_error &)
...

I suppose the intent of adding '&' is to avoid a copy.  I'm not sure if it's
necessary given that it's an unnamed const parameter, but I suppose it can't
hurt either.

Add the '&' here as well.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
Tom de Vries 2024-08-22 09:49:53 +02:00
parent a16c032a5c
commit 7812541722

View File

@ -1948,7 +1948,7 @@ svr4_handle_solib_event (void)
{
link_map_id_val = pa->prob->evaluate_argument (0, frame);
}
catch (const gdb_exception_error)
catch (const gdb_exception_error &)
{
link_map_id_val = NULL;
}