diff options
author | Tommi Rantala <tt.rantala@gmail.com> | 2012-09-17 14:15:50 +0300 |
---|---|---|
committer | Tommi Rantala <tt.rantala@gmail.com> | 2012-09-28 14:50:03 +0300 |
commit | aeb1afc65de3f395d760f7b8b7c70eb5545aef7e (patch) | |
tree | 5cefec9eb99f5c56bc29b85f4d8cf75b7e086b99 | |
parent | 643fc92e9106cd5a2e52b10a3e4b686111545726 (diff) | |
download | libunwind-aeb1afc65de3f395d760f7b8b7c70eb5545aef7e.tar.gz |
Call `unw_backtrace()' explicitly in test-flush-cache.c
-rw-r--r-- | tests/test-flush-cache.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/test-flush-cache.c b/tests/test-flush-cache.c index 180b5c2e..592162c1 100644 --- a/tests/test-flush-cache.c +++ b/tests/test-flush-cache.c @@ -25,15 +25,6 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#if HAVE_EXECINFO_H -# include <execinfo.h> -#else - extern int backtrace (void **, int); -#endif #include <stdio.h> #include <string.h> @@ -50,7 +41,7 @@ f257 (void) if (verbose) printf ("First backtrace:\n"); - n = backtrace (buffer, 300); + n = unw_backtrace (buffer, 300); if (verbose) for (i = 0; i < n; ++i) printf ("[%d] ip=%p\n", i, buffer[i]); @@ -59,7 +50,7 @@ f257 (void) if (verbose) printf ("\nSecond backtrace:\n"); - n = backtrace (buffer, 300); + n = unw_backtrace (buffer, 300); if (verbose) for (i = 0; i < n; ++i) printf ("[%d] ip=%p\n", i, buffer[i]); |