]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use gdb set and map in TUI
authorTom Tromey <tom@tromey.com>
Mon, 24 Feb 2025 22:36:28 +0000 (15:36 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 11 Mar 2025 14:33:08 +0000 (08:33 -0600)
This changes the TUI to use gdb::unordered_map and gdb::unordered_set
rather than the std:: variants.

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

index 79b7289c2a61fe93c5c1aa8cc375ff3bc9129fc1..3fac65f356e1ed35c40542df28f790afaae145e6 100644 (file)
@@ -24,7 +24,7 @@
 #include "frame.h"
 #include "cli/cli-decode.h"
 #include "cli/cli-utils.h"
-#include <unordered_set>
+#include "gdbsupport/unordered_set.h"
 
 #include "tui/tui.h"
 #include "tui/tui-command.h"
@@ -1221,7 +1221,7 @@ tui_new_layout_command (const char *spec, int from_tty)
 
   std::vector<std::unique_ptr<tui_layout_split>> splits;
   splits.emplace_back (new tui_layout_split (is_vertical));
-  std::unordered_set<std::string> seen_windows;
+  gdb::unordered_set<std::string> seen_windows;
   while (true)
     {
       spec = skip_spaces (spec);
index 22d7c722d6dac66fa1c9525edce7f11f5804ffb1..107b1238652663c411b7cb0de6659c2decc135fc 100644 (file)
@@ -27,8 +27,7 @@
 #include "tui/tui.h"
 #include "tui/tui-data.h"
 #include "gdbsupport/iterator-range.h"
-
-#include <unordered_map>
+#include "gdbsupport/unordered_map.h"
 
 /* Values that can be returned when handling a request to adjust a
    window's size.  */
@@ -368,7 +367,7 @@ typedef std::function<tui_win_info * (const char *name)> window_factory;
 
 /* The type for a data structure that maps a window name to that window's
    factory function.  */
-typedef std::unordered_map<std::string, window_factory> window_types_map;
+typedef gdb::unordered_map<std::string, window_factory> window_types_map;
 
 /* Register a new TUI window type.  NAME is the name of the window
    type.  FACTORY is a function that can be called to instantiate the