]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/target.c
gdb: relax assertion in target_mourn_inferior
[thirdparty/binutils-gdb.git] / gdb / target.c
index ba445e7fd34c9fe1aad86bc8bdda55eee4060ec3..0889da82ea593ad295741e75f6455c1fcd45d055 100644 (file)
@@ -2129,7 +2129,7 @@ default_mourn_inferior (struct target_ops *self)
 void
 target_mourn_inferior (ptid_t ptid)
 {
-  gdb_assert (ptid == inferior_ptid);
+  gdb_assert (ptid.pid () == inferior_ptid.pid ());
   current_top_target ()->mourn_inferior ();
 
   /* We no longer need to keep handles on any of the object files.