Re: [lldb-dev] lldb 5.0 debugging a threaded C program on FreeBSD 11.1-RELEASE (x86-64)

2017-11-19 Thread Dr. Rolf Jansen via lldb-dev
Greg, Many thanks for your answers. For me, the builtin ncurses-GUI mode of LLDB is a unique selling point compared to GDB. Only, my impression is that not many developers are aware of this fantastic feature and keep on breaking their fingers on the debuggers command line not by choice but bec

[lldb-dev] solved: Unifying ctor+Clear() inits into in-class initializers?

2017-11-19 Thread Jan Kratochvil via lldb-dev
On Sun, 19 Nov 2017 15:58:02 +0100, Jan Kratochvil via lldb-dev wrote: > https://reviews.llvm.org/D40212 ... > Is it OK to just use in-class member variable initializers and: > void Clear() { > this->~ClassName(); > new (this) ClassName(); > } > ? FYI Greg Clayton in th

Re: [lldb-dev] lldb 5.0 debugging a threaded C program on FreeBSD 11.1-RELEASE (x86-64)

2017-11-19 Thread Greg Clayton via lldb-dev
I wrote the "gui" mode many years ago in hope we would get people to work on it and improve it. No changes have been made since it was originally done. I would welcome any patches to help improve "gui" mode and make it great. I was never able to take the time to improve it to where it needs to b

[lldb-dev] Unifying ctor+Clear() inits into in-class initializers?

2017-11-19 Thread Jan Kratochvil via lldb-dev
Hi, https://reviews.llvm.org/D40212 At least DWARFCompileUnit and I see even for example MachVMRegion duplicate intialization of fields in both their constructor and Clear(). Moreover the initialization is in different place than declaration of the member variable. Is it OK to just use in-class

Re: [lldb-dev] lldb 4.0 (not 5) debugging a threaded C program on FreeBSD 11.1-RELEASE (x86-64)

2017-11-19 Thread Dr. Rolf Jansen via lldb-dev
Sorry, I confused the version numbers. FreeBSD 11 came with llvm 3.8, and FreeBSD 11.1 is using llvm 4.0. However, I just ran a debugging session with lldb 5 from llvm-5-devel from the ports on FreeBSD 11.1-RELEASE (x86-64) and it showed the same issue. Best regards Rolf > Am 16.11.2017 um 18

[lldb-dev] lldb 5.0 debugging a threaded C program on FreeBSD 11.1-RELEASE (x86-64)

2017-11-19 Thread Dr. Rolf Jansen via lldb-dev
Hello, I am not sure whether this is an issue with FreeBSD or lldb, please point me into the right direction. Recently I updated from FreeBSD 11 (system llvm/clang/lldb 4.0) to FreeBSD 11.1 (system llvm/clang/lldb 5.0). Now I am back working on one of my threaded server programs and in the pas