[PATCH] D42582: [lldb][PPC64] Fixed step-in stopping in the wrong line
    Jim Ingham via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Feb  5 10:03:49 PST 2018
    
    
  
As long as the prologue computation is done correctly we won't ever stop at the global entry point separately from the local one.  The will - after prologue skipping - resolve to the same address, and both stepping and breakpoint setting skip to the prologue unless you explicitly tell them not to.  So while I see the formal niceness of calling this a prologue, I don't think it is necessary.
Jim
> On Feb 3, 2018, at 3:38 AM, Leandro Lupori via Phabricator <reviews at reviews.llvm.org> wrote:
> 
> luporl added a comment.
> 
>> if you have a global entry point, is there ever any reason to stop at these? Is there anything you can debug in the global entry point?
> 
> You can look at it as part of the prologue. You'll want to debug it only if you want to debug the prologue.
> 
>> Does a global entry point always forward on to a local entry point?
> 
> When there are 2 entry points, yes, the global entry point always forwards to the local entry point.
> 
>> Does the local entry point always exists and is it the only thing that can be debugged?
> 
> Some functions may have only one entry point, be it local or global. If you don't want to debug the prologue, you will actually want to skip some bytes past the local entry point, to get past the prologue, to code that can be debugged.
> 
> Overall you can look at the local entry point as a kind of optimization, that enables a local call to skip part of the prologue.
> 
> 
> https://reviews.llvm.org/D42582
> 
> 
> 
    
    
More information about the llvm-commits
mailing list