Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
another attempt at fixing the include madness in mc for Mac
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 23 Jun 2018 09:33:02 +0000 (11:33 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 23 Jun 2018 09:33:02 +0000 (11:33 +0200)
src/mc/DwarfExpression.cpp
src/mc/DwarfExpression.hpp
src/mc/LocationList.hpp
src/mc/mc_base.cpp
src/mc/mc_dwarf.cpp

index 4f13379..8c7885b 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (c) 2014-2018. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2014-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. */
 
 /* 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. */
@@ -7,10 +6,6 @@
 #include <cstddef>
 #include <cstdint>
 
 #include <cstddef>
 #include <cstdint>
 
-#include <dwarf.h>
-#include <elfutils/libdw.h>
-#include <libunwind.h>
-
 #include "src/mc/AddressSpace.hpp"
 #include "src/mc/DwarfExpression.hpp"
 #include "src/mc/Frame.hpp"
 #include "src/mc/AddressSpace.hpp"
 #include "src/mc/DwarfExpression.hpp"
 #include "src/mc/Frame.hpp"
index 35227bc..2266e1c 100644 (file)
 #include <vector>
 
 #include <elfutils/libdw.h>
 #include <vector>
 
 #include <elfutils/libdw.h>
+#include <libunwind.h>
 
 
-#include "src/mc/mc_forward.hpp"
 #include "src/mc/AddressSpace.hpp"
 #include "src/mc/AddressSpace.hpp"
+#include "src/mc/mc_dwarf.hpp"
+#include "src/mc/mc_forward.hpp"
 
 /** @file DwarfExpression.hpp
  *
 
 /** @file DwarfExpression.hpp
  *
index dc9e797..9eec0b1 100644 (file)
@@ -6,14 +6,6 @@
 #ifndef SIMGRID_MC_OBJECT_LOCATION_H
 #define SIMGRID_MC_OBJECT_LOCATION_H
 
 #ifndef SIMGRID_MC_OBJECT_LOCATION_H
 #define SIMGRID_MC_OBJECT_LOCATION_H
 
-#include <cstdint>
-
-#include <vector>
-
-#include <libunwind.h>
-#include <dwarf.h>
-#include <elfutils/libdw.h>
-
 #include "xbt/base.h"
 #include "xbt/range.hpp"
 
 #include "xbt/base.h"
 #include "xbt/range.hpp"
 
@@ -21,6 +13,9 @@
 #include "src/mc/mc_forward.hpp"
 #include "src/mc/DwarfExpression.hpp"
 
 #include "src/mc/mc_forward.hpp"
 #include "src/mc/DwarfExpression.hpp"
 
+#include <cstdint>
+#include <vector>
+
 namespace simgrid {
 namespace dwarf {
 
 namespace simgrid {
 namespace dwarf {
 
index c1968fc..b525f40 100644 (file)
 #include "src/mc/mc_config.hpp"
 #include "src/mc/mc_forward.hpp"
 #include "src/mc/mc_replay.hpp"
 #include "src/mc/mc_config.hpp"
 #include "src/mc/mc_forward.hpp"
 #include "src/mc/mc_replay.hpp"
-#include "src/mc/remote/RemoteClient.hpp"
 #include "src/simix/smx_private.hpp"
 
 #include "src/kernel/activity/MutexImpl.hpp"
 
 #if SIMGRID_HAVE_MC
 #include "src/mc/ModelChecker.hpp"
 #include "src/simix/smx_private.hpp"
 
 #include "src/kernel/activity/MutexImpl.hpp"
 
 #if SIMGRID_HAVE_MC
 #include "src/mc/ModelChecker.hpp"
+#include "src/mc/remote/RemoteClient.hpp"
 
 using simgrid::mc::remote;
 #endif
 
 using simgrid::mc::remote;
 #endif
index d97c710..26b5954 100644 (file)
@@ -14,8 +14,6 @@
 
 #include <fcntl.h>
 #include <cstdlib>
 
 #include <fcntl.h>
 #include <cstdlib>
-#define DW_LANG_Objc DW_LANG_ObjC       /* fix spelling error in older dwarf.h */
-#include <dwarf.h>
 #include <elfutils/libdw.h>
 
 #include <boost/algorithm/string/predicate.hpp>
 #include <elfutils/libdw.h>
 
 #include <boost/algorithm/string/predicate.hpp>