[Lldb-commits] [lldb] r328990 - Added a BSD archive tool.

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 3 07:24:50 PDT 2018



> On Apr 2, 2018, at 10:27 AM, Davide Italiano <dccitaliano at gmail.com> wrote:
> 
> Now with the correct e-mail.
> How is this different from llvm-objdump or llvm-readobj?

It was originally created for parsing .a files and getting the mod date as a hex number from the BSD object info. I needed a tool that could verify a debug map that used .a files. There are build scenarios where people are seeing LLDB not load .o files from .a files and they don't know why. This installs an LLDB command that can be used to verify all of the .o files in a debug map and reports if they are all ok, or if any are out date, missing, wrong in the .a file, missing from the .a file, etc. You can't use llvm-objdump or llvm-readobj for this task. 

It can also extract individual .o files from a .a file.

It can also find a symbol in the __.SYMDEF to tell you which .a file contains a symbol by name.


> (also you might want to update your commit e-mail as reply-to seems to
> still be set to your @apple address and bounces back).
> 
> Thanks,
> 
> --
> Davide
> 
> On Mon, Apr 2, 2018 at 10:25 AM, Davide Italiano <dccitaliano at gmail.com> wrote:
>> On Mon, Apr 2, 2018 at 10:20 AM, Greg Clayton via lldb-commits
>> <lldb-commits at lists.llvm.org> wrote:
>>> Author: gclayton
>>> Date: Mon Apr  2 10:20:21 2018
>>> New Revision: 328990
>>> 
>>> URL: http://llvm.org/viewvc/llvm-project?rev=328990&view=rev
>>> Log:
>>> Added a BSD archive tool.
>>> 
>>> This is a combination stand alone BSD archive tool that can dump BSD archives:
>>> 
>> 
>> How is this different from llvm-objdump or llvm-readobj?



More information about the lldb-commits mailing list