gdb/dwarf: Ensure the target type of ranges is not void