<div dir="ltr">The host is a 32-bit box, and the debug program is 32-bit as well. The `breakpoint list`  command works well. Actually, I've compiled lldb from source, which doesn't change the situation. So this is very possible a 32-bit bug.<div>

<br><div>I think I should find a 64-bit Linux box, and try again. And I may also try to locate the problem, which will take some time, since I'm new to this.<br></div></div></div><div class="gmail_extra"><br clear="all">

<div>——<br>美丽有两种:<br>一是深刻又动人的方程,<br>一是你泛着倦意淡淡的笑容。</div>
<br><br><div class="gmail_quote">On Wed, Jul 17, 2013 at 2:04 AM, Malea, Daniel <span dir="ltr"><<a href="mailto:daniel.malea@intel.com" target="_blank">daniel.malea@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hi,</div>
<div><br>
</div>
<div>I notice you're running a 32-bit program; are you also on a 32-bit host, or do you have a 64-bit OS installed? We don't generally test on 32-bit hosts, so it's possible you found a new bug. In addition, there are some known bugs with debugging 32-bit programs
 (even on 64-bit hosts) which will we hopefully be resolving soon.</div>
<div><br>
</div>
<div>Nonetheless, I was unable to reproduce the behaviour you reported (with lldb-3.4 Ubuntu package version r186406). What's the output of "breakpoint list" -- does LLDB resolve any address for the breakpoint?</div>


<div><br>
</div>
<div>Here is my LLDB session on a 64-bit host debugging a 32-bit program:</div>
<div><br>
</div>
<div>
<div>daniel@lautrec:~$ lldb ./a.out </div>
<div>Current executable set to './a.out' (i386).</div><div class="im">
<div>(lldb) breakpoint set -l 8</div>
</div><div>Breakpoint 1: where = a.out`main + 67 at bla.cpp:9, address = 0x080484f3</div><div class="im">
<div>(lldb) breakpoint set -l 12</div>
</div><div>Breakpoint 2: no locations (pending).</div>
<div>WARNING:  Unable to resolve breakpoint to any actual locations.</div>
<div>(lldb) breakpoint list</div>
<div>Current breakpoints:</div>
<div>1: file = '/home/daniel/bla.cpp', line = 8, locations = 1</div>
<div>  1.1: where = a.out`main + 67 at bla.cpp:9, address = 0x080484f3, unresolved, hit count = 0 </div>
<div><br>
</div>
<div>2: file = '/home/daniel/bla.cpp', line = 12, locations = 0 (pending)</div>
<div><br>
</div>
<div>(lldb) process launch</div>
<div>Process 22954 launched: './a.out' (i386)</div>
<div>Process 22954 stopped</div>
<div>* thread #1: tid = 0x59aa, 0x080484f3 a.out`main(argc=1, argv=0xffa37624) + 67 at bla.cpp:9, name = 'a.out, stop reason = breakpoint 1.1</div>
<div>    frame #0: 0x080484f3 a.out`main(argc=1, argv=0xffa37624) + 67 at bla.cpp:9</div>
<div>   6   <span style="white-space:pre-wrap"></span>   while ( counter < 10 ) </div>
<div>   7   <span style="white-space:pre-wrap"></span>       counter++; </div>
<div>   8   <span style="white-space:pre-wrap"></span></div>
<div>-> 9   <span style="white-space:pre-wrap"></span>   printf("counter: %d\n", counter);</div>
<div>   10  <span style="white-space:pre-wrap"> </span></div>
<div>   11  <span style="white-space:pre-wrap"> </span>   return 0; </div>
<div>   12  <span style="white-space:pre-wrap"> </span>}</div>
<div>(lldb) </div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">


<span style="font-weight:bold">From: </span>小刚 <<a href="mailto:maple.hl@gmail.com" target="_blank">maple.hl@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>"<a href="mailto:Maple.HL@gmail.com" target="_blank">Maple.HL@gmail.com</a>" <<a href="mailto:Maple.HL@gmail.com" target="_blank">Maple.HL@gmail.com</a>><br>


<span style="font-weight:bold">Date: </span>Monday, 15 July, 2013 10:00 PM<br>
<span style="font-weight:bold">To: </span>LLVM List <<a href="mailto:llvmdev@cs.uiuc.edu" target="_blank">llvmdev@cs.uiuc.edu</a>><br>
<span style="font-weight:bold">Subject: </span>[LLVMdev] make lldb work<br>
</div><div><div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">Sorry if asked before.
<div><br>
</div>
<div>I'm new to LLDB, try to use it according to the lldb project site. I write some very simple code like:</div>
<div><br>
</div>
<div>#include <stdio.h></div>
<div>
<div><br>
</div>
<div>int main(int argc, char **argv) </div>
<div>{ </div>
<div>    int counter = 0; </div>
<div>    while ( counter < 10 ) </div>
<div>        counter++; </div>
<div><br>
</div>
<div>    printf("counter: %d\n", counter);</div>
<div><br>
</div>
<div>    return 0; </div>
<div>}</div>
</div>
<div><br>
</div>
<div>and the session like: </div>
<div><br>
</div>
<div>$ clang -g main.c</div>
<div>$ lldb-3.4 a.out </div>
<div>(lldb) breakpoint set -l 8</div>
<div>......</div>
<div>(lldb) breakpoint set -l 12</div>
<div>......</div>
<div>(lldb) breakpoint list</div>
<div>......</div>
<div>(lldb) process launch</div>
<div>
<div>Process 1105 launched: '/home/maple/debug/arena/a.out' (i386)</div>
<div>counter: 10</div>
<div>Process 1105 exited with status = 0 (0x00000000)</div>
</div>
<div><br>
</div>
<div>I checked with gdb, it works well. I'm not sure whether it's a bug or my false command.</div>
<div><br>
</div>
<div>I'm using Ubuntu 12.04, and the lldb is from <a href="http://llvm.org/apt" target="_blank">llvm.org/apt</a>. It's svn186357.</div>
<div><br>
</div>
<div>
<div>
<div>——<br>
美丽有两种:<br>
一是深刻又动人的方程,<br>
一是你泛着倦意淡淡的笑容。</div>
</div>
</div>
</div>
</div>
</div>
</div></div></span>
</div>

</blockquote></div><br></div>