ld/src/ld/debugline.c
/* Set RESULT to the next 'interesting' line state, as indicated
   by STOP, or return FALSE on error.  The final (end-of-sequence)
   line state is always considered interesting.  */
Set RESULT to the next 'interesting' line state, as indicated
by STOP, or return FALSE on error.  The final (end-of-sequence)
line state is always considered interesting.
Set RESULT to the next ' interesting ' line state as indicated by STOP or return FALSE on error . The final ( end - of - sequence ) line state is always considered interesting .
int
line_next (struct line_reader_data * lnd,
	   struct line_info * result,
	   enum line_stop_constants stop)
{
  for (;;)
    {
      struct line_info prev = lnd->cur;
      if (! next_state (lnd))
	return false;
      if (lnd->cur.end_of_sequence)
	break;
      if (stop == line_stop_always)
	break;
      if ((stop & line_stop_pc) && lnd->cur.pc != prev.pc)
	break;
      if ((stop & line_stop_pos_mask) && lnd->cur.file != prev.file)
	break;
      if ((stop & line_stop_pos_mask) >= line_stop_line
	  && lnd->cur.line != prev.line)
	break;
      if ((stop & line_stop_pos_mask) >= line_stop_col
	  && lnd->cur.col != prev.col)
	break;
    }
  *result = lnd->cur;
  return true;
}
int line_next ( struct line_reader_data * lnd , struct line_info * result , enum line_stop_constants stop ) { for ( ; ; ) { struct line_info prev = lnd -> cur ; if ( ! next_state ( lnd ) ) return false ; if ( lnd -> cur . end_of_sequence ) break ; if ( stop == line_stop_always ) break ; if ( ( stop & line_stop_pc ) && lnd -> cur . pc != prev . pc ) break ; if ( ( stop & line_stop_pos_mask ) && lnd -> cur . file != prev . file ) break ; if ( ( stop & line_stop_pos_mask ) >= line_stop_line && lnd -> cur . line != prev . line ) break ; if ( ( stop & line_stop_pos_mask ) >= line_stop_col && lnd -> cur . col != prev . col ) break ; } * result = lnd -> cur ; return true ; }
Set RESULT to the next 'interesting' line state, as indicated
by STOP, or return FALSE on error.
Set RESULT to the next ' interesting ' line state as indicated by STOP or return FALSE on error .