[PATCH v5 3/5] objdump: Add variable types and structure for DWARF info parsing

Jan Beulich jbeulich@suse.com
Fri Oct 31 11:46:32 GMT 2025


On 31.10.2025 12:41, Nick Clifton wrote:
>> On 28.10.2025 11:30, Guillaume VACHERIAS - foss wrote:
>>> Thanks for all the reviews, I've learnt a lot with upstream
>>> contribution throughout these exchanges !
>>>
>>> The other approach of implementing a new "gnu-dwarfdump" is
>>> definitively more expensive. Though it would be interesting for me to do it
>>> as a personal side project !
>>>
>>> However, I just wanted to know whether is possible that the functionality
>>> can be contributed to readelf. As "readelf can provide more information about an
>>> ELF file than is provided by objdump.  In particular it can display DWARF
>>> debugging information".
>>
>> I remain hesitant. Nick - any opinion?
> 
> Err, OK, I admit that I am out of the loop on this one.  What exactly is
> the issue ?
> 
> Obviously both objdump and readelf can display DWARF debug information.
> And since they use the same source file to do this, their functionality
> ought to be basically equivalent.  What am I missing ?

Guillaume wants to add functionality which doesn't really fit either tool,
for going quite a bit beyond "dumping" or "reading".

Jan


More information about the Binutils mailing list