Are Shareholder Advances Classified as Debt or Equity?

From time to time, owners of closely held businesses might need to advance their companies money to bridge a temporary downturn or provide funds for an expansion or another major purchase. How should those advances be classified under U.S. Generally Accepted Accounting Principles (GAAP)? Depending on the facts and circumstances