diff options
author | Tom Tromey <tromey@adacore.com> | 2022-12-21 13:57:45 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-01-02 06:48:31 -0700 |
commit | dacf80765d51be840d2efc20bc058643d88ec49f (patch) | |
tree | a9354ce821a43ac0293d2a7b5e5e5200620ab635 /gdb/python/py-dap.c | |
parent | b9877acc81ade609c503bbcff064e09d3e290a84 (diff) | |
download | binutils-dacf80765d51be840d2efc20bc058643d88ec49f.zip binutils-dacf80765d51be840d2efc20bc058643d88ec49f.tar.gz binutils-dacf80765d51be840d2efc20bc058643d88ec49f.tar.bz2 |
Remove target: prefix from gdb_sysroot in find_separate_debug_file
I noticed that, when using gdbserver, gdb might print:
Reading /usr/lib/debug/lib64//libcap.so.2.48-2.48-4.fc36.x86_64.debug from remote target...
Reading target:/usr/lib/debug/lib64//libcap.so.2.48-2.48-4.fc36.x86_64.debug from remote target...
The second line has the "target:" prefix, but from the code it's clear
that this string is being passed verbatim to gdbserver -- which seems
wrong.
I filed PR remote/29929 for this.
The problem here is that find_separate_debug_file uses gdb_sysroot
without checking to see if it starts with the "target:" prefix. This
patch changes this code to be a little more careful.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29929
Diffstat (limited to 'gdb/python/py-dap.c')
0 files changed, 0 insertions, 0 deletions