Ok, some info:
1) GDB is a separate project, but used by Lazarus for debugging
2) On ubuntu GDB is part of ubuntu, so I can not tell what you have.
Open a terminal and type GDB and return. It will display a message including version and copyright.
You can leave gdb with q and return.
Or better provide the log file (this usually contains the version). Just open a terminal and enter
lazarus --debug-log=LOG_FILE --debug-enable=DBG_CMD_ECHO,DBG_STATE,DBG_DATA_MONITORS,DBGMI_QUEUE_DEBUG,DBGMI_TYPE_INFO
where LOG_FILE is the name of the file, with path) like
/home/USERNAME/lazlog.txt
then try to debug something, get the error, and exit the IDE.Now upload the file.