Re: [lldb-dev] printf works under lldb but not otherwise

2019-10-17 Thread Greg Clayton via lldb-dev
The only thing I can think if is stdin/out/err are not setup correctly when launched out of the debugger. How does your program get launched? From a terminal on the command line? printf will call fprintf() under the covers with stdout as the file handle. Maybe "stdout" can be checked for NULL w

[lldb-dev] printf works under lldb but not otherwise

2019-10-07 Thread Peter Rowat via lldb-dev
I have a simple C program that has printf statements. It produces zero output. However when it’s run under lldb, it prints correct output. How could this be? I tried replacing the printf statements by “fprintf” to a file: same behaviour - no file created and no output, but under lldb, the file