我gdb用来调试C++程序。在行
assert(prevId == GetTagIdFromState(maxState));
- 参数
prevId值为0; - 方法
GetTagIdFromState(maxState)returns50;
调试时,我收到以下错误。
Assertion `prevId == GetTagIdFromState(maxState)' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff6ecbba5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
in ../nptl/sysdeps/unix/sysv/linux/raise.c