<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Aug 25, 2014 at 10:47 AM, Joost van der Sluis <span dir="ltr"><<a href="mailto:joost@cnoc.nl" target="_blank">joost@cnoc.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. Could the compiler add more information to make this easier? Or<br>
is it simply a matter of compiling everything with a stack frame?<br>
<br>
How about using a 3d party library compiled without debugging info /<br>
stack frame?<br>
The library could use your code compiled with debug info (i.e. by<br>
calling a callback), where the debugger should stop.<br>
</blockquote>
<br></div>
Indeed. That's one problem. Another problem is that on i386 a third-party library could use another calling convention. And for some (most?) compiler-proc's it is not possible to create a stack-frame, which also would slow down the code.<br>
<br>
What the compiler could do is adding line-info for the complete code. But I doubt that an average developers will appreciate that. An alternative could be to add line-info, but with a remark that the code could be skipped during stepping. But then we need to add something new to the Dwarf-format.<span class="HOEnZb"><font color="#888888"></font></span><br>
</blockquote></div><br></div><div class="gmail_extra">The only option I would think of, is to set break-points at all known routines and let the process run, until a break point is hit.<br></div><div class="gmail_extra">That requires no changes to either compiler or debug-info format.<br>
</div><div class="gmail_extra"><br>I don't think that would be slow. Of course, there won't be enough of hardware breakpoints, but software breakpoints should do the trick at least of x86 platforms. I guess that what I would for duby... when I get chance to get back to it.<br>
</div><div class="gmail_extra"></div><div class="gmail_extra"><br>thanks,<br>Dmitry<br></div></div>