I'm following this manual:
https://sourceware.org/gdb/onlinedocs/gdb/Compiling-and-Injecting-Code.html
$ gdb ./test
(gdb) break main
(gdb) run
(gdb) compile code std::cout << "Hello world\n";
No compiler support for language c++.
(gdb) compile code print("hello world")
No compiler support for language c++.
Does this mean that g++ is not supported? Or I need to configure GDB in some special way?