Foods such as broccoli, cauliflower, spices, onions (toxic to dogs), and cabbage contribute to stinky gas.