<div dir="ltr">Hi,<div><br></div><div>i'm currently trying to track down the following issue. We create LLVM IR like this</div><div>compilation unit: JdwpThreads.java</div><div> ; line 8</div><div><div> %t16 = load %Object** %$r6, !dbg !{i32 8, i32 0, metadata !33, null}</div><div> store %Object* %t16, %Object** %r4, !dbg !{i32 8, i32 0, metadata !33, null}</div><div><br></div><div> ; line 19</div><div> call void @"llvm.dbg.declare"(metadata !{%Object** %r4}, metadata !38), !dbg !{i32 19, i32 0, metadata !34, null}</div><div> %t17 = load %Object** %r4, !dbg !{i32 19, i32 0, metadata !34, null}</div><div> call void @"[j]java.lang.Thread.start()V[Invokevirtual(com/robovm/debug/server/apps/JdwpThreads,java/lang/Thread)]"(%Env* %p0, %Object* %t17), !dbg !{i32 19, i32 0, metadata !34, null}</div><div><br></div><div> ; line 20</div><div> %t18 = trunc i32 0 to i8, !dbg !{i32 20, i32 0, metadata !34, null}</div><div> call void @"[j]com.robovm.debug.server.apps.JdwpThreads.stopped(Z)[set]"(%Env* %p0, i8 %t18), !dbg !{i32 20, i32 0, metadata !34, null}</div><div><br></div><div> ; line 21</div><div> %t19 = load %Object** %r4, !dbg !{i32 21, i32 0, metadata !34, null}</div><div> call void @"[j]java.lang.Thread.join()V[Invokevirtual(com/robovm/debug/server/apps/JdwpThreads,java/lang/Thread)]"(%Env* %p0, %Object* %t19), !dbg !{i32 21, i32 0, metadata !34, null}</div></div><div><br></div><div>When setting a breakpoint for line 19 or 20 in that compilation unit, LLDB resolves it to line 21</div><div><br></div><div>
<p class=""><span class="">(lldb) </span>br set -f JdwpThreads.java -l 19</p>
<p class="">Breakpoint 1: where = JdwpThreadTest`[J]com.robovm.debug.server.apps.JdwpThreads.main([Ljava/lang/String;)V + 282 at JdwpThreads.java:21, address = 0x0028531f</p><p class=""><span class="">(lldb) </span>br set -f JdwpThreads.java -l 20</p>
<p class="">Breakpoint 2: where = JdwpThreadTest`[J]com.robovm.debug.server.apps.JdwpThreads.main([Ljava/lang/String;)V + 282 at JdwpThreads.java:21, address = 0x0028531f</p></div><div><br></div><div>The functions being called are all inlined functions. I suspected that to be the issue but don't know how to resolve it.</div><div><br></div><div>I'm a bit puzzled as to why that is and would appreciate any pointers. I can provide a Mac OS X binary or a dwarfdump if required.</div><div><br></div><div>Thanks,</div><div>Mario</div></div>