<div dir="ltr">I think elf-core patch go in as a separate patch for clarity(1.5K lines). <div>It can go in before or after ProcessMonitor cleanup(9K lines).<div>I prefer committing elf-core(if everything compiles and works) before cleanup because I am not sure how long the cleanup would take and dont want elf-core patch to bi rot(again :)).</div>

<div><br></div><div>What is your opinion on committing elf-core before PosixProcessMonitor cleanup?</div><div><br></div><div>Thanks</div><div>Samuel</div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 16, 2013 at 2:43 PM, Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I spent some time modifying the patch to correctly abstract the register contexts so we don't have this incorrect RegisterContext base class that uses ProcessMonitor... I wasn't able to finish it, but I did get it close. I have attached the patch for you guys to check out and hopefully fix it up and get it working for normal linux/freebsd, and for ELF core files for both linux and freebsd.<br>


<br>
The basics are, the following classes contain the register context data, but don't do any of the reading/writing registers (they have pure virtual functions for that):<br>
<br>
RegisterContextPOSIX_i386<br>
RegisterContextPOSIX_x86_64<br>
<br>
Then there are classes that inherit from these and each contain grab the process monitor:<br>
<br>
RegisterContextPOSIXProcessMonitor_i386<br>
RegisterContextPOSIXProcessMonitor_x86_64<br>
<br>
Then there should also be classes that do this for elf:<br>
<br>
RegisterContextELFLinux_XXX<br>
RegisterContextELFFreeBSD_XXX<br>
<br>
Please try and modify the existing patch to make it work so that we can use ELF core files on all systems.<br>
<br></blockquote></div></div></div></div></div>