]> git.ipfire.org Git - thirdparty/valgrind.git/commit
When --show-below-main=no, search main from the outermost stackframe
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 12 Nov 2016 20:11:25 +0000 (20:11 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 12 Nov 2016 20:11:25 +0000 (20:11 +0000)
commit5a340ec0c643b1f69ddcbf49508ee84401061ee3
treea5671a738ff9cdd482d6482ec306097da5d0d309
parent2fb506df7a837c38cd37e4f4976f76e96d0d1389
When --show-below-main=no, search main from the outermost stackframe

* main is more likely to be an outermost frame rather than an innermost
  frame. So, searching from the outermost frame will more quickly find it.

* Also, in case the stacktrace contains twice the main functionn, this
  ensures we only removes the functions below the outermost main.
  Having 2 mains in a stacktrace does not happen normally.
  However, this prepares for some future commit that improves
  the outer/inner setup: the outer will append the inner guest stack trace.
  The inner stack trace sometimes already contains main.
  Searching from outermost frame main allows to keep the interesting
  part of the stacktrace.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16135
coregrind/m_stacktrace.c