Hi, I’m trying to get lldb to step into a function which is defined within a shared library. Instead of stepping into the function, lldb always steps over it. Gdb behaves correctly. I can reproduce this using llvm 14 on a x86-64 Linux Mint 21 as well as on a aarch64 termux install.
int main(int argc, char** argv)
clang++ lib.cpp -shared -fPIC -o lib.so -g
clang++ app.cpp lib.so -g -o app
LD_LIBRARY_PATH=. lldb ./app
Instead of stepping into PrintName lldb steps over it, while gdb behaves correctly.
Am I doing something wrong, or is this a bug? Any help in resolving this issue would be greatly appreciated.