[binutils-gdb] Use gdb unordered set in symtab.c

Tom Tromey tromey@sourceware.org
Tue Mar 18 11:44:25 GMT 2025


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

commit c2c9928fe677aa0ca2c82b3de61478b54bbac4f0
Author: Tom Tromey <tom@tromey.com>
Date:   Tue Mar 11 09:32:33 2025 -0600

    Use gdb unordered set in symtab.c
    
    This changes symtab.c to use gdb:unordered_set.
    
    Approved-By: Simon Marchi <simon.marchi@efficios.com>

Diff:
---
 gdb/symtab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/symtab.c b/gdb/symtab.c
index aa09706453c..06e2cd5b877 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -75,7 +75,7 @@
 #include "gdbsupport/pathstuff.h"
 #include "gdbsupport/common-utils.h"
 #include <optional>
-#include <unordered_set>
+#include "gdbsupport/unordered_set.h"
 
 /* Forward declarations for local functions.  */
 
@@ -5623,7 +5623,7 @@ rbreak_command (const char *regexp, int from_tty)
     spec.add_filename (std::move (file_name));
   std::vector<symbol_search> symbols = spec.search ();
 
-  std::unordered_set<std::string> seen_names;
+  gdb::unordered_set<std::string> seen_names;
   scoped_rbreak_breakpoints finalize;
   int err_count = 0;


More information about the Gdb-cvs mailing list