Add constructor to solib_catchpoint This adds a constructor to solib_catchpoint and simplifies the caller.