Shares of AT&T were gaining in premarket trading Thursday after the telecommunications giant posted better-than-expected profit for its third quarter and continued to see strong subscriber additions in its wireless business.