Hi and welcome,
I assume your weight loss isn't deliberate and has no obvious cause? If so, rather than try to gain weight, I would go to the doctor, tell him your worries, and ask for the relevant tests to check you are actually type2 and not LADA. (latent autoimmune diabetes in adults) The tests you need are a C-peptide test and GAD antibodies test.