关于gdb函数格式的澄清

clarification about gdb function format

本文关键字:格式 gdb 函数 关于      更新时间:2023-10-16

这种gdb输出意味着什么

#0  0x0000000000401782 in std::__fill_n_a<long long __vector(4)*, unsigned long, long long __vector(4)> (__first=0x604010, __n=1, __value=...)

__value=...究竟是什么意思?

从此文档链接:

The value of parameter data in frame 1 has been replaced by ….
By default, GDB prints the value of a parameter only if it is a scalar
(integer, pointer, enumeration, etc). See command set print frame-arguments
in Print Settings for more details on how to configure the way function
parameter values are printed.

您想要:set print frame-arguments all