[Crash-utility] [PATCHv2 08/11] Helper function to add member info to struct datatype_member

Petr Tesarik ptesarik at suse.cz
Mon Oct 21 19:50:14 UTC 2013


Instead of parsing the complete type on each iteration, move the code
to a helper function. This might be slightly faster, but most importantly
the main loop doesn't need the "structname" and "separator" variables
after this change.

Signed-off-by: Petr Tesarik <ptesarik at suse.cz>

---
 symbols.c |   44 +++++++++++++++++++++++---------------------
 1 file changed, 23 insertions(+), 21 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: datatype-member-offset.patch
Type: text/x-patch
Size: 2869 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20131021/3864ebb0/attachment.bin>


More information about the Crash-utility mailing list