Your dog can be panting as a response to pain. If your dog is panting and salivating excessively, retching and has a distended abdomen, he might be suffering from bloat. Bloat is a life-threatening condition, take your dog to a vet immediately! Other causes of pain can include pancreatitis or joint pain.