On Thu, Oct 27, 2011 at 1:34 AM, Joel Dillon <[email protected]> wrote:
> I now have lldb compiling and attempting to execute a program. There seems > to be an assumption in the code that sizeof(int) is 8 on a 64 bit platform. > This is not the case with Linux/gcc 4.6, leading to some rather nasty bugs > (the return value of ptrace() was being assigned to an int, truncating data > from peeks, for instance!). I've fixed the ptrace() issue but another one is > happening somewhere around breakpoints. I added some logging which displays > the problem - > > Process 4017 launched: '/home/jo/reader/calliope' (x86_64) > (lldb) Looking for address 406780, list size is 1 > Entry 0 is 406780 sizeof 8 > Looking for address 270f9300, list size is 2 > Entry 0 is 406780 sizeof 8 > Entry 1 is 7ffb270f9300 sizeof 8 > lldb: > /home/jo/lldb/llvm/tools/lldb/source/Plugins/Process/Linux/LinuxThread.cpp:249: > void LinuxThread::BreakNotify(const ProcessMessage&): Assertion `bp_site' > failed. > > Hmm, you seem to be further away than me. lldb reports the debugged executable as crashing in _start with invalid instruction (on a program that just returns 0 in main). This is after fixing the ptrace PEEKUSER issue, on a somewhat similar setup: gcc 4.5 on x86_64. Thanks, Dragos
_______________________________________________ lldb-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
