Improve Dwarf frame establishing function

Remove reliance on order of dwarf instructions.