<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000000">Gentle ping.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 3, 2019 at 8:05 PM Alexander Polyakov <<a href="mailto:polyakov.alx@gmail.com" target="_blank">polyakov.alx@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">Hi lldb-dev,<br><br>Currently I'm working on an OS plug-in for multiple operating systems and architectures, during my work, I noted a few moments I want to discuss with the community.<br><br>1) Adding RegisterContext to SB API:<br> if you want your OS plug-in to support multiple architectures you need to implement</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"> things like <b>get_register_info, get_register_data...</b> for each architecture.<br> In my mind, we could do that using RegisterContext, for example: <br> <b>get_register_info</b> could just call RegisterContext::GetRegisterContextAtIndex(idx), the number <br> of registers could be obtained from RegisterContext::GetRegisterCount();<br> <b>get_register_data </b>could return SBRegisterContext instead of just bytes, then the process of</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"> fetching the register values might look as: for each register <br> SBRegisterContext::WriteRegister(reg_info, reg_value).<br> Please correct me if I'm missing something.<br><br>2) New lldb-mi command: -info-os<br> the gdb-mi documentation defines this command and there is a problem with it. To fully<br> implement it, we should be able to get CPU ID a thread is running on, but lldb<br> does not have an abstraction for CPU ID at all, so it becomes unreal at least for now.<br> I'm going to partly implement this command for Zephyr (e.g. return some value to indicate <br> that the CPU ID is undefined) and I want to know if the community is interested in implementing<br> that command inside lldb-mi (at least in part).</div><div><br></div>-- <br><div dir="ltr" class="gmail-m_7510879125230014197gmail-m_8474218409265849256m_5204971009704125322gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px">Alexander</span><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_7510879125230014197gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px">Alexander</span><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>