<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">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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_signature" data-smartmail="gmail_signature">Sent from my iPhone</div>