aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorAaron Merey <amerey@redhat.com>2021-05-07 11:37:16 -0400
committerAaron Merey <amerey@redhat.com>2021-05-07 11:37:16 -0400
commit1d1669e40f89a34ae2804ee040df2bf77ed29df8 (patch)
tree9bc08d10248d4a61d04e5e8ad029a43430f79fdf /gdb/target.c
parent2698f5ead62298979e44a212023027ebb582f3d1 (diff)
downloadbinutils-1d1669e40f89a34ae2804ee040df2bf77ed29df8.zip
binutils-1d1669e40f89a34ae2804ee040df2bf77ed29df8.tar.gz
binutils-1d1669e40f89a34ae2804ee040df2bf77ed29df8.tar.bz2
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.
Diffstat (limited to 'gdb/target.c')
0 files changed, 0 insertions, 0 deletions