[13/19] Use gdb unordered map in ravenscar.c

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

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

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

Patch

diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c
index 47db72b2d6902265ea8d2a254b8080a41f33aa8a..dae69175efcef1ad777cd871c0ba91a0aab50c2e 100644
--- a/gdb/ravenscar-thread.c
+++ b/gdb/ravenscar-thread.c
@@ -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 @@  struct ravenscar_thread_target final : public target_ops
      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.  */