struct - Keeping type definitions and some symbols in an elf file -


Starting with an ELF file that contains the required information to fully debug my application, I make an ELF I would like to have only some symbols
I managed to get it done with the GNU binuntils strip tool:
Strip -F elf32-big -p -s -K myFunc1-K myFunc2 -K myVar1 -K myVar2 myApp.elf
My concern is that myVar1 and myVar2 are structured variables and debuggers can not scratch them because 'Patti' has been removed from Elf .debug_info section .debug_info I understand, where the definitions of the structure are stored, I understand).
Ideally, what I would do for the debugger to parse my variable only in Elf I played with the options of 'strip' I played with other binutils (Rileyf, Obsokie, Ozdump ...) When I had read. But this is not anything satisfactory.
How would you do this?

I do not know which device you already want.

If I was told to do this, then I will push back. Instead of trying to stretch some parts of the Debuginfo, I would wonder why we could not use the current partition debugino approach. Together with Build-id, there is good assets which can be executed by anyone executing, but if necessary, complete debugging can also be done - by pointing GDB to Debuginfo ELF.

He said, if I want to write it, I will say, firstly define what you want to keep. After this, write a program to teach DWARF (say, using Alfutul libraries for this) and then just write new DWARF with the desired information.

This is not very difficult (for example "Dijagez" for a DWARF manipulator ...) but not all that easy, either.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -