Welcome to Ireland Reaching Out!
I searched the subscription site Roots Ireland for all of Ireland for any Gilroy baptismal records where the mother's maiden name was Shanley and no record came up. I also searched for any Gilroy baptismal records in Kiltoghert RC parish which includes Carrick on Shannon and the earliest record was in 1856 for a Fanny Gilroy. Likely James Patrick or Patrick James was baptized in a parish thay no longer has records back to 1838. Any other clues about the family?