It's been assumed -- but never confirmed -- that if we hit the debt ceiling, that The Treasury could prioritize payments, continuing to make bond coupon payments and entitlements, while shutting off other spending.

The Bipartisan Policy Center has put together a presentation (.pdf) on the debt ceiling, and what prioritization would look like (via Stone Street Advisors).

These two charts show it all.