This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Remove a VEC from record-full.c


On 2018-06-07 22:56, Tom Tromey wrote:
@@ -1830,10 +1820,7 @@ record_full_target::remove_breakpoint (struct
gdbarch *gdbarch,
 	    }

 	  if (reason == REMOVE_BREAKPOINT)
-	    {
-	      VEC_unordered_remove (record_full_breakpoint_p,
-				    record_full_breakpoints, ix);
-	    }
+	    record_full_breakpoints.erase (iter);
 	  return 0;

You can use one of the overloads of unordered_remove in common/gdb_vecs.h to try to preserve the exact same behavior as with the VEC.

Simon


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]