X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/166ad11130482e81d2c3e860ab6c61e972a4cdf6..9fd6cbc6c3b06f4b09e3c3339ffb3cc8a68f9bfa:/src/xbt/backtrace.cpp diff --git a/src/xbt/backtrace.cpp b/src/xbt/backtrace.cpp index 022ae52a55..0fc1168abe 100644 --- a/src/xbt/backtrace.cpp +++ b/src/xbt/backtrace.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2005-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2005-2018. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -22,12 +22,8 @@ #include "src/internal_config.h" -extern "C" { - XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_backtrace, xbt, "Backtrace"); -} - static bool startWith(std::string str, const char* prefix) { return strncmp(str.c_str(), prefix, strlen(prefix)) == 0; @@ -36,7 +32,7 @@ static bool startWith(std::string str, const char* prefix) void xbt_backtrace_display(xbt_backtrace_location_t* loc, std::size_t count) { #ifdef HAVE_BACKTRACE - std::vector backtrace = simgrid::xbt::resolveBacktrace(loc, count); + std::vector backtrace = simgrid::xbt::resolve_backtrace(loc, count); if (backtrace.empty()) { fprintf(stderr, "(backtrace not set)\n"); return;