Module Name:    src
Committed By:   christos
Date:           Wed Aug 14 23:19:31 UTC 2024

Modified Files:
        src/external/gpl3/gdb/dist/gdbserver: server.cc

Log Message:
XXX: something is wrong with our c++ templates. Disable for now. This is
just to pretty-print an error message so no big deal.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 src/external/gpl3/gdb/dist/gdbserver/server.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/gdbserver/server.cc
diff -u src/external/gpl3/gdb/dist/gdbserver/server.cc:1.1.1.3 src/external/gpl3/gdb/dist/gdbserver/server.cc:1.2
--- src/external/gpl3/gdb/dist/gdbserver/server.cc:1.1.1.3	Mon Aug 12 17:39:21 2024
+++ src/external/gpl3/gdb/dist/gdbserver/server.cc	Wed Aug 14 19:19:31 2024
@@ -949,12 +949,17 @@ handle_general_set (char *own_buf)
 
 	  if ((options & ~supported_options) != 0)
 	    {
+#if 0
+	      // XXX: see undefined
 	      /* GDB asked for an unknown or unsupported option, so
 		 error out.  */
 	      std::string err
 		= string_printf ("E.Unknown thread options requested: %s\n",
 				 to_string (options).c_str ());
 	      strcpy (own_buf, err.c_str ());
+#else
+	      strcpy (own_buf, "unsuppported option");
+#endif
 	      return;
 	    }
 
@@ -1004,9 +1009,13 @@ handle_general_set (char *own_buf)
 
 	  if (thread->thread_options != options)
 	    {
+#if 0
+	      // XXX: undefined reference to
+	      // `to_string[abi:cxx11](enum_flags<gdb_thread_option>)'
 	      threads_debug_printf ("[options for %s are now %s]\n",
 				    target_pid_to_str (ptid_of (thread)).c_str (),
 				    to_string (options).c_str ());
+#endif
 
 	      thread->thread_options = options;
 	    }

Reply via email to