Maybe libstdc++-devel was not installed. gcc8.spec could get a line like Supplements: packageand(libstdc++:gdb) but OTOH you do not need all the header files on most systems with gdb.