]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
debuginfod-support.c: Use long-lived debuginfod_client
authorAaron Merey <amerey@redhat.com>
Fri, 7 May 2021 15:37:16 +0000 (11:37 -0400)
committerAaron Merey <amerey@redhat.com>
Fri, 7 May 2021 15:37:16 +0000 (11:37 -0400)
commit1d1669e40f89a34ae2804ee040df2bf77ed29df8
tree9bc08d10248d4a61d04e5e8ad029a43430f79fdf
parent2698f5ead62298979e44a212023027ebb582f3d1
debuginfod-support.c: Use long-lived debuginfod_client

Instead of initializing a new debuginfod_client for each query, store
the first initialized client for the remainder of the GDB session and
use it for every debuginfod query.

In conjunction with upcoming changes to libdebuginfod, using one client
for all queries will avoid latency caused by unneccesarily setting up
TCP connections multiple times.

Tested on Fedora 33 x86_64.

gdb/ChangeLog:

* debuginfod-support.c (debuginfod_init): Remove.
(get_debuginfod_client): New function.
gdb/ChangeLog
gdb/debuginfod-support.c