Filipe Cabecinhas
2011-Jan-19 23:00 UTC
[LLVMdev] Extending llvm-mc to whole executables/libraries
Hi, I want to extend llvm-mc to make it disassemble whole files, instead of sequences of bytes. Most of the work to read from a Mach-O file is already done by lldb, but that is outside llvm's repository and not useful to llvm-mc (as far as I know). Is anyone working on something similar? Is it desirable to have llvm-mc disassemble whole files? Or should I create another project for that? How do you suggest reading the files? Re-implementing the reading stuff? "Steal" from lldb (I don't know how self-contained the plug-in may be… It could require a big part of lldb)? Any other ideas? Regards, Filipe Cabecinhas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110119/6b2b6b1f/attachment.html>
Michael Spencer
2011-Jan-20 06:08 UTC
[LLVMdev] Extending llvm-mc to whole executables/libraries
On Wed, Jan 19, 2011 at 6:00 PM, Filipe Cabecinhas <filcab at gmail.com> wrote:> Hi, > I want to extend llvm-mc to make it disassemble whole files, instead of > sequences of bytes. > Most of the work to read from a Mach-O file is already done by lldb, but > that is outside llvm's repository and not useful to llvm-mc (as far as I > know). > Is anyone working on something similar? > Is it desirable to have llvm-mc disassemble whole files? Or should I create > another project for that? > How do you suggest reading the files? Re-implementing the reading stuff? > "Steal" from lldb (I don't know how self-contained the plug-in may be… It > could require a big part of lldb)? Any other ideas? > Regards, > > Filipe CabecinhasI'm working on object file support, and am just about to commit llvm-objdump which does just what you want. It is separate from, but uses, MC. I gave a talk at the last conference which explains the architecture and future plans: http://llvm.org/devmtg/2010-11/ - Michael Spencer
Filipe Cabecinhas
2011-Jan-20 10:37 UTC
[LLVMdev] Extending llvm-mc to whole executables/libraries
Thanks I'll be waiting for it, then. Regards, Filipe Cabecinhas On Thursday, January 20, 2011 at 06:08, Michael Spencer wrote:> On Wed, Jan 19, 2011 at 6:00 PM, Filipe Cabecinhas <filcab at gmail.com> wrote: > > > Hi, > > I want to extend llvm-mc to make it disassemble whole files, instead of > > sequences of bytes. > > Most of the work to read from a Mach-O file is already done by lldb, but > > that is outside llvm's repository and not useful to llvm-mc (as far as I > > know). > > Is anyone working on something similar? > > Is it desirable to have llvm-mc disassemble whole files? Or should I create > > another project for that? > > How do you suggest reading the files? Re-implementing the reading stuff? > > "Steal" from lldb (I don't know how self-contained the plug-in may be… It > > could require a big part of lldb)? Any other ideas? > > Regards, > > > > Filipe Cabecinhas > > > > > > I'm working on object file support, and am just about to commit > llvm-objdump which does just what you want. It is separate from, but > uses, MC. > > I gave a talk at the last conference which explains the architecture > and future plans: http://llvm.org/devmtg/2010-11/ > > - Michael Spencer > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110120/f1f12a06/attachment.html>