samintz
Scott Mintz
- May
- 1,590
- 27
I have a linker output file that is huge. I want to parse its output to show me all the external references for the modules contained within a certain library.
The file format is:
Loading member global.o from SQLite3.lib.
definition: sqlite3Config
definition: sqlite3GlobalFunctions
definition: sqlite3CtypeMap
definition: sqlite3UpperToLower
definition: sqlite3PendingByte
definition: sqlite3_Initialize()
reference : __aeabi_memcpy4
Loading member legacy.o from SQLite3.lib.
etc.
I want to display all the reference lines for the members in that library. It's relatively easy to locate the "Loading member..." line, however I essentially want to grab that block of text between the "Loading member" lines and then further search for only the "reference :..." lines.
-Scott
The file format is:
Loading member global.o from SQLite3.lib.
definition: sqlite3Config
definition: sqlite3GlobalFunctions
definition: sqlite3CtypeMap
definition: sqlite3UpperToLower
definition: sqlite3PendingByte
definition: sqlite3_Initialize()
reference : __aeabi_memcpy4
Loading member legacy.o from SQLite3.lib.
etc.
I want to display all the reference lines for the members in that library. It's relatively easy to locate the "Loading member..." line, however I essentially want to grab that block of text between the "Loading member" lines and then further search for only the "reference :..." lines.
-Scott