[02/19] Use gdb unordered set in breakpoint.c

Message ID 20250317-replace-std-stuff-v1-2-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 breakpoint.c to use gdb:unordered_set.
---
 gdb/breakpoint.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Patch

diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 34e32303b02c38a35f0680c06c3020ec66aa3e58..3085ca111bfc20bf331ffa6f099e9610997e907d 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -70,7 +70,6 @@ 
 #include "tid-parse.h"
 #include "cli/cli-style.h"
 #include "cli/cli-decode.h"
-#include <unordered_set>
 #include "break-cond-parse.h"
 
 /* readline include files */
@@ -7860,7 +7859,7 @@  check_longjmp_breakpoint_for_call_dummy (struct thread_info *tp)
   /* We would need to delete breakpoints other than the current one while
      iterating, so all_breakpoints_safe is not sufficient to make that safe.
      Save all breakpoints to delete in that set and delete them at the end.  */
-  std::unordered_set<breakpoint *> to_delete;
+  gdb::unordered_set<breakpoint *> to_delete;
 
   for (struct breakpoint &b : all_breakpoints ())
     {