<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 11 April 2017 at 15:56, Greg Clayton <span dir="ltr"><<a href="mailto:clayborg@gmail.com" target="_blank">clayborg@gmail.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="word-wrap:break-word"><br><div><span class=""><blockquote type="cite"><div>On Apr 11, 2017, at 5:33 AM, Pavel Labath <<a href="mailto:labath@google.com" target="_blank">labath@google.com</a>> wrote:</div><br class="m_-8841469701513024722Apple-interchange-newline"><div><div dir="ltr">Are you sure this is not just an artifact of stdio buffering? I tried the same experiment, but I placed a real log statement, and I could see that all the <span style="font-size:12.8px">LoadModuleAtAddress calls happen between the $T and $c packets in the gdb-remote packet sequence. </span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">The module loading should be synchronous, so I think the problem lies elsewhere.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">What is the nature of the breakpoint that is not getting hit? Can you provide a repro case? The only bug like this that I am aware of is that we fail to hit breakpoints in global constructors in shared libraries, but that hasn't worked even in 3.8..</span></div></div></div></blockquote><div><br></div></span>I unfortunately can't attach a repro case. I will be able to track this down, just need some pointers. I did notice that I wasn't able to hit breakpoints in global constructors though... Do we know why? On Mac, we get notified of shared libraries as they load so we never miss anything. Why are we not able to get the same thing with linux?<div><div class="h5"><br></div></div></div></div></blockquote><div><br></div><div>It looks like we are intercepting the library load too late, but I haven't investigated yet how to fix it. It's definitely possible (this works fine in gdb), but I don't know how, as the dynamic linker is still a big unknown to me. FWIW, I think I'll be messing with the dynamic loader plugin soon(ish), so I'll try to fix this then.</div><div><br></div><div>pl</div></div></div></div>