From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7862) id 352FC3858D3C; Thu, 10 Nov 2022 17:09:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 352FC3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668100167; bh=szSWJq6xozSQTKcWQoccsHXs2WHa5fAZlqW/gjxod1A=; h=From:To:Subject:Date:From; b=CdCfat/9ZktVj3BHLxHmdHRGHkbVfZS/bdi+fkSUKUSvapJj5nrueXBG1LzRcTWkz 6wr5P6QZSt8Dzz51zNaVKaxA3n+Mhcf/YKpX43gseBnc93AOBkRdd7cDfkrS1V6FYy EXWPwxoVcJd6UsEpGtRabSHcO+XdGbZuarTIef6Q= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Bruno Larsen To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: Fix regressions caused by 041de3d73aa121f2ff0c077213598963bfb34b79 X-Act-Checkin: binutils-gdb X-Git-Author: Bruno Larsen X-Git-Refname: refs/heads/master X-Git-Oldrev: 27859c6b9d73a8ae1b51c5c40fc2b3aefd2228a0 X-Git-Newrev: 05e8d17b8b49065a104277f4df6bfe5e72e83862 Message-Id: <20221110170927.352FC3858D3C@sourceware.org> Date: Thu, 10 Nov 2022 17:09:26 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D05e8d17b8b49= 065a104277f4df6bfe5e72e83862 commit 05e8d17b8b49065a104277f4df6bfe5e72e83862 Author: Bruno Larsen Date: Thu Nov 10 17:58:58 2022 +0100 gdb: Fix regressions caused by 041de3d73aa121f2ff0c077213598963bfb34b79 =20 Commit 041de3d73aa changed the output format of all error messages when GDB couldn't determine a compatible overload for a given function, but it was only supposed to change if the failure happened due to incomplete types. This commit removes the stray . that was added Diff: --- gdb/valops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/valops.c b/gdb/valops.c index 2b789cd76f4..e90c3947b8d 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -2979,12 +2979,12 @@ find_overload_match (gdb::array_view args, { std::string hint =3D incomplete_type_hint (args); if (method =3D=3D METHOD) - error (_("Cannot resolve method %s%s%s to any overloaded instance.%s"), + error (_("Cannot resolve method %s%s%s to any overloaded instance%s"), obj_type_name, (obj_type_name && *obj_type_name) ? "::" : "", name, hint.c_str ()); else - error (_("Cannot resolve function %s to any overloaded instance.%s"), + error (_("Cannot resolve function %s to any overloaded instance%s"), func_name, hint.c_str ()); } else if (match_quality =3D=3D NON_STANDARD)