* inferiors.c (find_inferior): Make it safe for the callback
function to delete the currently iterated inferior.
This commit is contained in:
parent
67cc2626af
commit
a07b2135db
@ -1,3 +1,8 @@
|
||||
2009-03-22 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* inferiors.c (find_inferior): Make it safe for the callback
|
||||
function to delete the currently iterated inferior.
|
||||
|
||||
2009-03-22 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* Makefile.in (linuw_low_h): Move higher.
|
||||
|
@ -180,9 +180,12 @@ find_inferior (struct inferior_list *list,
|
||||
|
||||
while (inf != NULL)
|
||||
{
|
||||
struct inferior_list_entry *next;
|
||||
|
||||
next = inf->next;
|
||||
if ((*func) (inf, arg))
|
||||
return inf;
|
||||
inf = inf->next;
|
||||
inf = next;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user