cmDebuggerStackFrame.cxx 734 B

12345678910111213141516171819202122232425262728
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #include "cmDebuggerStackFrame.h"
  4. #include <utility>
  5. #include "cmListFileCache.h"
  6. namespace cmDebugger {
  7. std::atomic<int64_t> cmDebuggerStackFrame::NextId(1);
  8. cmDebuggerStackFrame::cmDebuggerStackFrame(cmMakefile* mf,
  9. std::string sourcePath,
  10. cmListFileFunction const& lff)
  11. : Id(NextId.fetch_add(1))
  12. , FileName(std::move(sourcePath))
  13. , Function(lff)
  14. , Makefile(mf)
  15. {
  16. }
  17. int64_t cmDebuggerStackFrame::GetLine() const noexcept
  18. {
  19. return this->Function.Line();
  20. }
  21. } // namespace cmDebugger