To commit suicide by shooting oneself in the head through the roof of one's mouth. I didn't expect anyone in the movie to die, so I was shocked when the main character ate his gun.
eat one’s gun
tv. to commit suicide by firing one’s gun into one’s mouth. The cop was very depressed and ended up eating his gun.