[LLVMdev] Preliminary patch for GDB support for JIT
echristo at apple.com
Wed Jul 8 14:06:38 PDT 2009
On Jul 8, 2009, at 1:55 PM, Reid Kleckner wrote:
>>> And finally, the patch to LLVM is attached and uploaded to Rietveld:
>> In general I'd like to see the ELF support separated from the main
>> interface. It makes any other platform support require a complete
>> refactor :)
> That's a goal I have for the summer. One dumb way to approach it
> would be to push the ELF creation to the GDB side of the interface,
> and create the ELF there. That would clean up the interface and make
> it much nicer.
True. I wonder what it would take to just mark it as a section or
perhaps start a blank section in the executable for more debug info...
> But once you've done that, then it's probably just as much work to
> figure out the in memory objfile data structures and modify those
> directly. This was just the path that yielded results most quickly.
Yeah. Might be best to keep it in llvm since it will already know how
to emit the files.
More information about the llvm-dev