重定向 (gdb) set logging file FILENAME (gdb) set logging on Copying output to staticPara. (gdb) set logging off Done logging to FILENAME. 打印 直接打印 p x 指定长度 p *point@byteLen 输出大小 (gdb) p *pucBuf@666666 value requires 666666 bytes, which is more than max-value-size (gdb) set max-value-size unlimited