[05/19] Use gdb unordered set in symtab.c

Message ID 20250317-replace-std-stuff-v1-5-7ba4ee88e218@tromey.com
State New
Headers
Series Convert std::unordered_{set,map} to gdb implementations |

Commit Message

Tom Tromey March 18, 2025, 2:14 a.m. UTC
  This changes symtab.c to use gdb:unordered_set.
---
 gdb/symtab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gdb/symtab.c b/gdb/symtab.c
index aa09706453c120c56195e994df053e81a577a2b1..06e2cd5b87756a2d53c6a4c427cec1e44cdeddb0 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;