<div dir="ltr">That being said, the tool won't generate register macros when the corresponding record macro is already in place, so the initial move would have to be done by hand. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 15, 2019 at 1:47 PM Jonas Devlieghere <<a href="mailto:jonas@devlieghere.com">jonas@devlieghere.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div dir="auto">They actually are auto generated, using the lldb-inst tool. Currently the record macros are inserted in place, while the register macros are dumped to stdout. I didn’t want to add too much complexity. However, it would be really easy to just dump the register macros in the file as well. </div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 15, 2019 at 13:44 Zachary Turner via Phabricator <<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">zturner added a comment.<br>
<br>
Or better yet, make it a static method on each SB class.  E.g. `SBTarget::InitializeReproducerRegistry();` etc, one for each class.<br>
<br>
Random thought, but this all seems like a very high maintenance strategy, having to manually update this registry when methods are added or removed.  Did you ever consider auto-generating them by parsing the SWIG?<br>
<br>
<br>
Repository:<br>
  rLLDB LLDB<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D59427/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D59427/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D59427" rel="noreferrer" target="_blank">https://reviews.llvm.org/D59427</a><br>
<br>
<br>
<br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail-m_-6508001852630031043gmail_signature">Sent from my iPhone</div>
</blockquote></div>