<br><br><div class="gmail_quote">On Thu, Oct 27, 2011 at 1:34 AM, Joel Dillon <span dir="ltr"><<a href="mailto:joelrdillon@gmail.com">joelrdillon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

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 -<br>


<br>Process 4017 launched: '/home/jo/reader/calliope' (x86_64)<br>(lldb) Looking for address 406780, list size is 1<br>Entry 0 is 406780 sizeof 8<br>Looking for address 270f9300, list size is 2<br>Entry 0 is 406780 sizeof 8<br>


Entry 1 is 7ffb270f9300 sizeof 8<br>lldb: /home/jo/lldb/llvm/tools/lldb/source/Plugins/Process/Linux/LinuxThread.cpp:249: void LinuxThread::BreakNotify(const ProcessMessage&): Assertion `bp_site' failed.<br><br></blockquote>

<div>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.</div>

<div><br></div><div>Thanks,</div><div>Dragos</div></div>