A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add the Storage::read_async and Storage::write_async methods
[simgrid.git]
/
src
/
xbt
/
backtrace.cpp
diff --git
a/src/xbt/backtrace.cpp
b/src/xbt/backtrace.cpp
index
022ae52
..
0fc1168
100644
(file)
--- a/
src/xbt/backtrace.cpp
+++ b/
src/xbt/backtrace.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2005-201
7
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2005-201
8
. 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. */
/* 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"
#include "src/internal_config.h"
-extern "C" {
-
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_backtrace, xbt, "Backtrace");
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;
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
void xbt_backtrace_display(xbt_backtrace_location_t* loc, std::size_t count)
{
#ifdef HAVE_BACKTRACE
- std::vector<std::string> backtrace = simgrid::xbt::resolve
B
acktrace(loc, count);
+ std::vector<std::string> backtrace = simgrid::xbt::resolve
_b
acktrace(loc, count);
if (backtrace.empty()) {
fprintf(stderr, "(backtrace not set)\n");
return;
if (backtrace.empty()) {
fprintf(stderr, "(backtrace not set)\n");
return;