Jim Gordon does not die in The Dark Knight (2008). The Joker frames him for Harvey Dent's crimes, leading to a dramatic standoff where Gordon's family is threatened. Batman rescues them, and Gordon—though publicly disgraced—clears his name and continues as Gotham's commissioner.
The confusion may stem from:
In Nolan's trilogy, Gordon (Gary Oldman) survives all three films—battered, betrayed, but unbroken.