在Linux下的GDB环境中,用p 命令查看一个void *型的变量的时候,提示为: "attempt to dereference a generic a pointer "
这里主要是指针类型不确定,强制转换指针类型后,可以使用转换后的指针类型打印元素。