[GDB] Fix compiling error when not enable GDB.