I just noticed that I can not debug rvalue references with gdb-7.7.1
properly.
void simple(int &&i) {}
When I enter this minimalistic function I can not obtain any meaningful information about i
. It's type and value are unknown to gdb
.
simple(int&&) (i=<unknown type in /tmp/test, CU 0x0, DIE 0xcd78>) at test.cpp:10
(gdb) p i
$2 = <unknown type in /tmp/test, CU 0x0, DIE 0xcd78>
Am I doing something wrong? Are there any sensible workarounds? Will upgrading to gdb-7.10
solve this issue?