]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use gdb unordered map in ravenscar.c
authorTom Tromey <tom@tromey.com>
Tue, 11 Mar 2025 17:22:23 +0000 (11:22 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 18 Mar 2025 11:32:04 +0000 (05:32 -0600)
This changes ravenscar.c to use gdb::unordered_map.

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

index 47db72b2d6902265ea8d2a254b8080a41f33aa8a..dae69175efcef1ad777cd871c0ba91a0aab50c2e 100644 (file)
@@ -30,7 +30,7 @@
 #include "top.h"
 #include "regcache.h"
 #include "objfiles.h"
-#include <unordered_map>
+#include "gdbsupport/unordered_map.h"
 
 /* This module provides support for "Ravenscar" tasks (Ada) when
    debugging on bare-metal targets.
@@ -194,7 +194,7 @@ private:
      needed because sometimes the runtime will report an active task
      that hasn't yet been put on the list of tasks that is read by
      ada-tasks.c.  */
-  std::unordered_map<ULONGEST, int> m_cpu_map;
+  gdb::unordered_map<ULONGEST, int> m_cpu_map;
 };
 
 /* Return true iff PTID corresponds to a ravenscar task.  */