I'll shamelessly reference an answer I wrote on Worldbuilding to an almost identical question. Lammer et al. (2014) suggested that "super-Earths" with masses of $2$-$5M_\oplus$1 could retain massive hydrogen/helium envelopes, up to $\sim10^{25}$ kilograms. Above this, up to about $10M_\odot$ or more, "mini-Neptunes" exist, possibly composed of volatiles and having significant gas envelopes2. In other words, there's a transition region between terrestrial planets and gaseous planets (gas dwarfs included) that depends significantly on whether the planet can hold onto an envelope for a significant amount of time.
Part of this depends on the environment. For instance, you cite Kepler-10c as a possibly upper limit to terrestrial planets. The reason Kepler-10c can't be a gas planet, as Dumusque et al. (2014) explain, is that it's way too close to its parent star to retain a hydrogen envelope. It would likely lose a lot of such an atmosphere via Jeans escape, the same mechanism that leads to chthonian planets. It's possible, then, that Kepler-10c would have been an ice giant if it had formed farther away from Kepler-10. It has a similar mass and potentially similar composition; it just happens to be much closer to its parent star than Neptune.
This is something of an unsatisfying answer, but there simply isn't an exact line that separates terrestrial planets and gas planets, just like there isn't a good line between massive gas giants and, say, sub-brown dwarfs.
1 There are, of course, exceptions, like Kepler-138a, which has a mass similar to Earth yet is a good gas dwarf candidate.
2 For more information on the transition region, see e.g. Lopez & Fortney (2013).