The IRS says: “For the year of the account owner’s death, use the RMD the account owner would have received. For the year following the owner’s death, the RMD will depend on the identity of the designated beneficiary.” If you are the designated beneficiary, as a surviving spouse you can choose to roll over the account to your own and figure RMDs for your own account.
When debts are cancelled in bankruptcy cases, the cancelled amount is excluded from gross income. Tax attributes are certain losses, credits, and property basis that must be reduced to the extent of the exclusion.