I have a .txt file like:
Symbols from __ctype_tab.o:
Name Value Class Type Size Line Section
__ctype |00000000| D | OBJECT |00000004| |.data
__ctype_tab |00000000| r | OBJECT |00000101| |.rodata
Symbols from _ashldi3.o:
Name Value Class Type Size Line Section
__ashldi3 |00000000| T | FUNC |00000050| |.text
How can i parsr this file and get the functions with type FUNC ?
Also,from this txt how can i parse and extract .o name ?
How can i get them by column wise parsing or else how.
I need an immediate help…Waiting for an appropriate solution as usual
I think this might cost less than the use of regexes though i am not totally clear on what you are trying to accomplish
I have learned from other posts it is cheaper and better to wrap up all of the data when you are reading through a file the first time. Thus if you wanted to wrap up the whole datafile in one pass then you could do the following instead
Then if you want the Func type you would use the following:
Sorry for being so obsessive but I am trying to get a better handle on creating list comprehensions and I decided that this was worthy of a shot