Move streq and compare_cstrings to gdbsupport
authorTom Tromey <tromey@adacore.com>
Wed, 14 Dec 2022 19:28:32 +0000 (12:28 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 15 Dec 2022 19:13:35 +0000 (12:13 -0700)
commit2e55fbce03a0bbee40032b486fe565bfc2423894
treedf6b897deaa72f1a366042b2cdea69c0c15a1220
parentc573941878c15ecd8f0985cbe3fb8370abe4c807
Move streq and compare_cstrings to gdbsupport

It seems to me that streq and compare_cstrings belong near the other
string utility functions in common-utils.h; and furthermore that streq
ought to be inlined.  This patch makes this change.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/utils.c
gdb/utils.h
gdbsupport/common-utils.h