Merging giant-star asteroseismology with the fate of extrasolar planetary systems