[lldb-dev] [LLDB on windows] Step out is not working

olizit via lldb-dev lldb-dev at lists.llvm.org
Tue Feb 28 03:35:41 PST 2017


Hello,

Compile this sample program with clang 3.9.1 in 64bits mode
#include <iostream>

int my_func(char c, double d)
{
std::cout << "c: " << c << std::endl;
std::cout << "d:" << d << std::endl;
return 0;
}

int main(int argc, char const *argv[])
{
int i = 0;
i++;
i++;
my_func('a', 10.1);
i++;
i++;
return 0;
}

compile commande line :
clang++ -x c++ -target "x86_64-pc-windows-msvc" -O0 -glldb -gdwarf-4 -D
_WIN32 -D _WIN64 -D _CONSOLE -D NDEBUG -D _DEBUG -D _MT -D _DLL -c -o
main.o main.cpp
lld-link /out:main.exe /machine:X64 /nxcompat /incremental  /nologo /wx
/subsystem:console /debug vcruntimed.lib msvcrtd.lib main.o

run lldb and enter commands
target create "main.exe"
b main.cpp:14
r

First step over (n command) is ok but second step over goes into my_func
function.


Thanks,

Olivier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170228/e5c804b1/attachment-0001.html>


More information about the lldb-dev mailing list