Re: [lldb-dev] Where should PROLOGUE_END be set

2015-09-01 Thread Aidan Dodds via lldb-dev
Ok that clears things up for me. Thanks Greg. Aidan On 31/08/2015 20:50, Greg Clayton wrote: It is just defined to be where all of the prologue instructions are done setting up the stack frame for the current function. There is no right answer in terms of source lines, the compiler can say an

Re: [lldb-dev] Where should PROLOGUE_END be set

2015-08-31 Thread Greg Clayton via lldb-dev
It is just defined to be where all of the prologue instructions are done setting up the stack frame for the current function. There is no right answer in terms of source lines, the compiler can say anything it wants to. Greg > On Aug 31, 2015, at 4:22 AM, Aidan Dodds via lldb-dev > wrote: >

[lldb-dev] Where should PROLOGUE_END be set

2015-08-31 Thread Aidan Dodds via lldb-dev
Hello all, It seems that different LLVM backends (ARM, MIPS, X86) can output a different line number for PROLOGUE_END in the DWARF line table. Say I have a function as follows: 1. int my_function( int arg1 ) 2. { 3.some_code(); 4. At -O0 I am seeing the PROLOGUE_END set on the fu