]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Small comment fix: .h specifies "all frames", implementation uses 8.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 16 Jan 2013 22:07:02 +0000 (22:07 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 16 Jan 2013 22:07:02 +0000 (22:07 +0000)
Two fixes could be done:
Either we fix the comments
or we increase N_FRAMES to be rather VG_DEEPEST_BACKTRACE.

We fix the comment for the following reason:
This is (at least for the moment) not performance critical.
as this is only called when an error is reported.
However, searching for local vars is extremely costly.
It is unlikely that an error is reported for a stack variable
which is more than 8 frames deeper than theframe in which
it is detected.

So, fix the comment, waiting for a complaint that a deeper
variable is not properly described.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13235

coregrind/m_debuginfo/debuginfo.c
include/pub_tool_debuginfo.h

index d3b8ef4aceca76bc4063cee8e7828438c182e510..95e1ea0409422edb6120b948ca0849b6506f3696 100644 (file)
@@ -3171,7 +3171,7 @@ Bool consider_vars_in_frame ( /*MOD*/XArray* /* of HChar */ dname1,
 }
 
 /* Try to form some description of DATA_ADDR by looking at the DWARF3
-   debug info we have.  This considers all global variables, and all
+   debug info we have.  This considers all global variables, and 8
    frames in the stacks of all threads.  Result is written at the ends
    of DNAME{1,2}V, which are XArray*s of HChar, that have been
    initialised by the caller, and True is returned.  If no description
index 2875282856169a15f298ae214585936deab9c283..d4cb6d8ab7025213a2b97f18e196ade611f764ab 100644 (file)
@@ -96,7 +96,7 @@ extern Bool VG_(get_datasym_and_offset)( Addr data_addr,
                                          /*OUT*/PtrdiffT* offset );
 
 /* Try to form some description of DATA_ADDR by looking at the DWARF3
-   debug info we have.  This considers all global variables, and all
+   debug info we have.  This considers all global variables, and 8
    frames in the stacks of all threads.  Result is written at the ends
    of DNAME{1,2}V, which are XArray*s of HChar, that have been
    initialised by the caller, and True is returned.  If no description