/* 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. */
+#include <libunwind.h>
+
+#include <xbt/sysdep.h>
+
#include "src/mc/Frame.hpp"
namespace simgrid {
{
simgrid::dwarf::Location location = simgrid::dwarf::resolve(
frame_base_location, object_info,
- &unw_cursor, NULL, NULL, -1);
+ &unw_cursor, nullptr, nullptr, -1);
if (location.in_memory())
return location.address();
else if (location.in_register()) {
// This is a special case.
- // The register if not the location of the frame base
- // (a frame base cannot be located in a register)
+ // The register is not the location of the frame base
+ // (a frame base cannot be located in a register).
// Instead, DWARF defines this to mean that the register
// contains the address of the frame base.
unw_word_t word;