public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [OBV PATCH] gdb: Fix regressions caused by 041de3d73aa121f2ff0c077213598963bfb34b79
@ 2022-11-10 17:09 Bruno Larsen
  0 siblings, 0 replies; only message in thread
From: Bruno Larsen @ 2022-11-10 17:09 UTC (permalink / raw)
  To: gdb-patches; +Cc: Bruno Larsen

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
---
 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<value *> args,
     {
       std::string hint = incomplete_type_hint (args);
       if (method == 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 == NON_STANDARD)
-- 
2.38.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-10 17:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 17:09 [OBV PATCH] gdb: Fix regressions caused by 041de3d73aa121f2ff0c077213598963bfb34b79 Bruno Larsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).