25

When running addr2line in some programs, I get a "discriminator N" comment at the end of the line:

main at /tmp/nsievebits.c:56 (discriminator 3)

The man page doesn't mention it, and a quick Google search seems to indicate mostly source code files, with no clear explanation. Is it some intentionally undocumented feature? More importantly, should I worry about it at all?

4

1 回答 1

21

据我了解,当一行中有多个代码路径时,鉴别器会很有用,请参阅更多信息。您可以放心地忽略它们,但如果有人知道如何阅读它们,它们可以为您提供有关堆栈确切指向的位置的非常精确的信息。

于 2013-06-27T19:33:55.390 回答