/* Lookup and return the dwarf reg @reg_num for this frame. Return NULL if @reg_num is an register invalid number.  */
static struct dwarf_reg* dwarf_frame_reg(struct dwarf_frame *frame, unsigned int reg_num)
/* Lookup and return the dwarf reg @reg_num for this frame. Return NULL if @reg_num is an register invalid number.  */
static struct dwarf_reg* dwarf_frame_reg(struct dwarf_frame *frame, unsigned int reg_num)
{
	struct dwarf_reg *reg;
	list_for_each_entry(reg, &frame->reg_list, link) {
		if (reg->number == reg_num)
			return reg;
	}
	return NULL;
}