[binutils-gdb] Change `...'-style quoting in gdbsupport

Tom Tromey tromey@sourceware.org
Thu Nov 5 20:38:17 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=622783a75e1e5e2f76696f7490d05ac949e7af8b

commit 622783a75e1e5e2f76696f7490d05ac949e7af8b
Author: Tom Tromey <tom@tromey.com>
Date:   Sat Aug 22 12:32:32 2026 -0600

    Change `...'-style quoting in gdbsupport
    
    This changes spots in gdbsupport that use `...'-style quoting to use
    double quotes instead.  Some spots also use the `...` style; these are
    also changed.
    
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34044

Diff:
---
 gdbsupport/agent.cc      | 2 +-
 gdbsupport/event-loop.cc | 4 ++--
 gdbsupport/format.cc     | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gdbsupport/agent.cc b/gdbsupport/agent.cc
index 44b6fcdcf5c..92fcf884f73 100644
--- a/gdbsupport/agent.cc
+++ b/gdbsupport/agent.cc
@@ -97,7 +97,7 @@ agent_look_up_symbols (void *arg)
       if (find_minimal_symbol_address (symbol_list[i].name, addrp,
 				       objfile) != 0)
 	{
-	  DEBUG_AGENT ("symbol `%s' not found\n", symbol_list[i].name);
+	  DEBUG_AGENT ("symbol \"%s\" not found\n", symbol_list[i].name);
 	  return -1;
 	}
     }
diff --git a/gdbsupport/event-loop.cc b/gdbsupport/event-loop.cc
index b7217282110..311ee70bbbe 100644
--- a/gdbsupport/event-loop.cc
+++ b/gdbsupport/event-loop.cc
@@ -521,7 +521,7 @@ handle_file_event (file_handler *file_ptr, int ready_mask)
 	  if (mask & POLLERR)
 	    warning (_("Error detected on fd %d"), file_ptr->fd);
 	  if (mask & POLLNVAL)
-	    warning (_("Invalid or non-`poll'able fd %d"),
+	    warning (_("Invalid or non-\"poll\"able fd %d"),
 		     file_ptr->fd);
 	  file_ptr->error = 1;
 	}
@@ -546,7 +546,7 @@ handle_file_event (file_handler *file_ptr, int ready_mask)
   if (mask != 0)
     {
       event_loop_ui_debug_printf (file_ptr->is_ui,
-				  "invoking fd file handler `%s`",
+				  "invoking fd file handler \"%s\"",
 				  file_ptr->name.c_str ());
       file_ptr->proc (file_ptr->error, file_ptr->client_data);
     }
diff --git a/gdbsupport/format.cc b/gdbsupport/format.cc
index 43995edf453..35e61e43698 100644
--- a/gdbsupport/format.cc
+++ b/gdbsupport/format.cc
@@ -359,10 +359,10 @@ format_pieces::format_pieces (const char **arg, bool gdb_extensions,
 	    break;
 
 	  case '*':
-	    error (_("`*' not supported for precision or width in printf"));
+	    error (_("\"*\" not supported for precision or width in printf"));
 
 	  case 'n':
-	    error (_("Format specifier `n' not supported in printf"));
+	    error (_("Format specifier \"n\" not supported in printf"));
 
 	  case '\0':
 	    error (_("Incomplete format specifier at end of format string"));


More information about the Gdb-cvs mailing list