Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-04 Thread Adrian McCarthy via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL265349: Implement `target modules dump objfile` (authored by amccarth). Changed prior to commit: http://reviews.llvm.org/D18464?vs=52624&id=52626#toc Repository: rL LLVM http://reviews.llvm.org/D184

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-04 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. Thanks for making all the changes. http://reviews.llvm.org/D18464 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http:

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-04 Thread Adrian McCarthy via lldb-commits
amccarth updated this revision to Diff 52624. amccarth added a comment. Removed the per-file header from the common code and make the ObjectFileELF::Dump print its own header like the others. http://reviews.llvm.org/D18464 Files: source/Commands/CommandObjectTarget.cpp source/Plugins/Objec

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-04 Thread Adrian McCarthy via lldb-commits
amccarth added inline comments. Comment at: source/Commands/CommandObjectTarget.cpp:1568 @@ +1567,3 @@ +ObjectFile *objfile = module->GetObjectFile(); +strm.Printf("'%s':\n", objfile->GetFileSpec().GetCString()); +strm.IndentMore();

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-04 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. See inlined comments. Comment at: source/Commands/CommandObjectTarget.cpp:1568 @@ +1567,3 @@ +ObjectFile *objfile = module->GetObjectFile(); +

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-04 Thread Adrian McCarthy via lldb-commits
amccarth updated this revision to Diff 52618. amccarth added a comment. Removed the "headers for" string, but kept the name of the file, as not all of the ObjectFile::Dump implementations (e.g., ELF) print the file name. http://reviews.llvm.org/D18464 Files: source/Commands/CommandObjectTarg

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-04 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Close, we just need to remove the "Headers for" string. See inlined comment. Comment at: source/Commands/CommandObjectTarget.cpp:1568 @@ +1567,3 @@ +

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-04 Thread Adrian McCarthy via lldb-commits
amccarth updated this revision to Diff 52588. amccarth added a comment. OK, this now dumps headers for the ObjectFiles of the modules rather than the modules themselves, using `target modules dump objfile` as suggested. My only concern here is that the SB API has a module dump, but no object fil

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-01 Thread Greg Clayton via lldb-commits
clayborg added a comment. In http://reviews.llvm.org/D18464#389612, @zturner wrote: > FWIW I believe we do actually want many of the PE headers, although I have to > say I don't like the format of the output.It seems like we could break > this up into smaller chunks like section headers, pe

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-01 Thread Zachary Turner via lldb-commits
zturner added a subscriber: zturner. zturner added a comment. FWIW I believe we do actually want many of the PE headers, although I have to say I don't like the format of the output.It seems like we could break this up into smaller chunks like section headers, pe headers, binary headers, deb

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-01 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. I would limit this scope to dumping ObjectFiles since that seems to be what you want. So this command should probably change from: (lldb) target modules dump headers to: (l

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-01 Thread Adrian McCarthy via lldb-commits
amccarth added a comment. Ping. http://reviews.llvm.org/D18464 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-03-24 Thread Adrian McCarthy via lldb-commits
amccarth added a comment. Literally: Dumping headers for 1 module(s). Headers for 'd:\src\fizzbuzz\a.exe': Module d:\src\fizzbuzz\a.exe 04189230: ObjectFilePECOFF, file = 'd:\src\fizzbuzz\a.exe', arch = i386 SectID Type File Address

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-03-24 Thread Adrian McCarthy via lldb-commits
amccarth added a comment. I'm using it with PE files (Windows), so I see A table of where the debug info exists MSDOS Header COFF Header PECOFF header a table of section headers (.rdata, .bss, etc.). The section headers table is redundant with `target modules dump sections`, but I don't see ano

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-03-24 Thread Greg Clayton via lldb-commits
clayborg added a comment. What does some sample output of this look like? I can't remember what module->Dump(...) does. http://reviews.llvm.org/D18464 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l