]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: add another overload of startswith
authorAndrew Burgess <aburgess@redhat.com>
Fri, 29 Dec 2023 09:00:51 +0000 (09:00 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Sat, 7 Sep 2024 20:48:34 +0000 (21:48 +0100)
commit3debc0b3480369d13149ea05cdbf61b6acd0ffdc
tree6be641aa9f9170e0634caa664a4bb74e211a745a
parent4764e22161c68806444a6484cc5314b56071c647
gdb: add another overload of startswith

We already have one overload of the startswith function that takes a
std::string_view for both arguments.  A later patch in this series is
going to be improved by having an overload that takes one argument as
a std::string_view and the other argument as a plain 'char *'.

This commit adds the new overload, but doesn't make use of it (yet).
There should be no user visible changes after this commit.
gdbsupport/common-utils.h