diff options
author | Dmitry.Neverov <dmitry.neverov@jetbrains.com> | 2023-10-24 08:44:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-10-26 13:51:32 (GMT) |
commit | c028425df969ef741de366cc2b765727b8e59c2c (patch) | |
tree | 70dc702f9493cf93b8fa3db2b23b0ba03c1dc11f /Source/cmDebuggerThread.cxx | |
parent | a2c4b234f27423edbe5f2e0bb17b8275cf393017 (diff) | |
download | CMake-c028425df969ef741de366cc2b765727b8e59c2c.zip CMake-c028425df969ef741de366cc2b765727b8e59c2c.tar.gz CMake-c028425df969ef741de366cc2b765727b8e59c2c.tar.bz2 |
Debugger: report function name in DAP stackframes
Before a file name and a line were returned, but they can be
obtained by other means.
Fixes: #25091
Diffstat (limited to 'Source/cmDebuggerThread.cxx')
-rw-r--r-- | Source/cmDebuggerThread.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDebuggerThread.cxx b/Source/cmDebuggerThread.cxx index fd52f5a..f7a1778 100644 --- a/Source/cmDebuggerThread.cxx +++ b/Source/cmDebuggerThread.cxx @@ -13,6 +13,7 @@ #include "cmDebuggerVariables.h" #include "cmDebuggerVariablesHelper.h" #include "cmDebuggerVariablesManager.h" +#include "cmListFileCache.h" namespace cmDebugger { @@ -135,8 +136,7 @@ dap::StackTraceResponse GetStackTraceResponse( #endif stackFrame.line = thread->Frames[i]->GetLine(); stackFrame.column = 1; - stackFrame.name = thread->Frames[i]->GetFileName() + " Line " + - std::to_string(stackFrame.line); + stackFrame.name = thread->Frames[i]->GetFunction().OriginalName(); stackFrame.id = thread->Frames[i]->GetId(); stackFrame.source = source; |