gud-tooltip-modes

gud-tooltip-modes is a variable defined in `gud.el'.
Its value is
(gud-mode c-mode c++-mode fortran-mode python-mode)


Documentation:
List of modes for which to enable GUD tooltips.

You can customize this variable.