+2006-10-05 Joel Brobecker <brobecker@adacore.com>
+
+ * blockframe.c (block_innermost_frame): Rewrite frame search logic.
+
2006-10-05 Daniel Jacobowitz <dan@codesourcery.com>
* Makefile.in (gdb_expat_h): New.
start = BLOCK_START (block);
end = BLOCK_END (block);
- frame = NULL;
- while (1)
+ frame = get_current_frame ();
+ while (frame != NULL)
{
- frame = get_prev_frame (frame);
- if (frame == NULL)
- return NULL;
calling_pc = get_frame_address_in_block (frame);
if (calling_pc >= start && calling_pc < end)
return frame;
+
+ frame = get_prev_frame (frame);
}
+
+ return NULL;
}