]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use gdb unordered set in symtab.c
authorTom Tromey <tom@tromey.com>
Tue, 11 Mar 2025 15:32:33 +0000 (09:32 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 18 Mar 2025 11:32:03 +0000 (05:32 -0600)
This changes symtab.c to use gdb:unordered_set.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/symtab.c

index aa09706453c120c56195e994df053e81a577a2b1..06e2cd5b87756a2d53c6a4c427cec1e44cdeddb0 100644 (file)
@@ -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;