[PATCH 2/2] gdb: introduce debuginfod_client_up type

Tom Tromey tom@tromey.com
Mon Sep 14 20:24:50 GMT 2020


>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:

Simon> From: Simon Marchi <simon.marchi@polymtl.ca>
Simon> Introduce and use a unique pointer specialization for the
Simon> debuginfod_client type.  The deleter calls debuginfod_end to free the
Simon> client.

Simon> gdb/ChangeLog:

Simon> 	* debuginfod-support.c (debuginfod_client_deleter): New.
Simon> 	(debuginfod_client_up): New.
Simon> 	(debuginfod_init): Return debuginfod_client_up.
Simon> 	(debuginfod_source_query): Adjust.
Simon> 	(debuginfod_debuginfo_query): Adjust.

Looks good to me.

Tom


More information about the Gdb-patches mailing list