<div dir="ltr">Thanks for reply. We have FP, SP ready for a particular architecture. We want to know how CFI instructions give information to the debugger abut the machine registers and the stack frame as a whole. ? Please guide<div>Thanks,</div><div>Siddharth</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 25, 2017 at 10:42 PM, Robinson, Paul <span dir="ltr"><<a href="mailto:paul.robinson@sony.com" target="_blank">paul.robinson@sony.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-1262124150856900947WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You are asking on cfe-dev but Clang does not emit these directly.  LLVM generates them.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">DWARF CFI is used to inform the debugger about how machine registers are saved/restored in a call frame.  Are you asking how LLVM decides when to generate a
 CFI instruction?  Or are you wondering how CFI instructions turn into a .debug_frame section?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">In either case, asking a more specific question on llvm-dev would get you a more informed answer.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">--paulr<u></u><u></u></span></p>
<p class="MsoNormal"><a name="m_-1262124150856900947__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></a></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> cfe-dev [mailto:<a href="mailto:cfe-dev-bounces@lists.llvm.org" target="_blank">cfe-dev-bounces@lists.<wbr>llvm.org</a>]
<b>On Behalf Of </b>Siddharth Shankar Swain via cfe-dev<br>
<b>Sent:</b> Monday, September 25, 2017 12:19 AM<br>
<b>To:</b> Clang Dev<br>
<b>Subject:</b> [cfe-dev] Call frame information query<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Hi,</span><u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Can anyone suggest how the CFI instructions are used to provide necessary information to the debugger ( lldb ) through the respective dwarf  entries  for CFI? It will be better if someone can point out to the
 implementation details .<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Thanks,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Siddharth<u></u><u></u></span></p>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br></div>