aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests/vec-utils-selftests.c
diff options
context:
space:
mode:
authorAaron Merey <amerey@redhat.com>2022-04-08 18:50:56 -0400
committerAaron Merey <amerey@redhat.com>2022-04-20 17:40:05 -0400
commit52449404c4e38000351e8f2c7b768f12fd808eda (patch)
treed26145c93b7c7c15fe93fbc394ccfbc11cec5897 /gdb/unittests/vec-utils-selftests.c
parentb750766ac9652def5307925b8fc5c215fbcef8df (diff)
downloadbinutils-52449404c4e38000351e8f2c7b768f12fd808eda.zip
binutils-52449404c4e38000351e8f2c7b768f12fd808eda.tar.gz
binutils-52449404c4e38000351e8f2c7b768f12fd808eda.tar.bz2
gdb/debuginfod: Prevent out_of_range exception
Trailing whitespace in the string of debuginfod URLs causes an out_of_range exception during the printing of URLs for the first use notice. To fix this, stop printing URLs when the substring to be printed consists only of whitespace. Also add first use notice testcases. Co-Authored-By: Pedro Alves <pedro@palves.net>
Diffstat (limited to 'gdb/unittests/vec-utils-selftests.c')
0 files changed, 0 insertions, 0 deletions