[lldb-dev] Where should PROLOGUE_END be set
Aidan Dodds via lldb-dev
lldb-dev at lists.llvm.org
Tue Sep 1 09:43:50 PDT 2015
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 anything it wants to.
>
> Greg
>
>> On Aug 31, 2015, at 4:22 AM, Aidan Dodds via lldb-dev <lldb-dev at lists.llvm.org> wrote:
>>
>> 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 function definition (1.,
>> ARM) and on the first line of code (3., X86, MIPS)
>> At -03 the ARM backend uses line 3 as its PROLOGUE_END.
>>
>> Is there a 'correct' place for this to be set, or is expected that this can be different?
>> If it is somehow language defined then I am most interested in an answer related to C99.
>>
>> Thanks,
>> Aidan
>>
>> _______________________________________________
>> lldb-dev mailing list
>> lldb-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
More information about the lldb-dev
mailing list