Generic Glucotrol XL is used for treating type 2 diabetes in patients who cannot control blood sugar levels by diet and exercise alone.