https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120987

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Workaround:
...
diff --git a/gdb/linespec.c b/gdb/linespec.c
index b59c0553c34..46b25a0047d 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -2615,7 +2615,7 @@ parse_linespec (linespec_parser *parser, const ch
ar *arg,
       /* The linespec didn't parse.  Re-throw the file exception if
         there was one.  */
       if (file_exception.reason < 0)
-       throw_exception (std::move (file_exception));
+       throw_exception (gdb_exception (file_exception));

       /* Otherwise, the symbol is not found.  */
       symbol_not_found_error
...

Reply via email to