[Crash-utility] [PATCH] displaying anonymous members of struct/union

qiaonuohan qiaonuohan at cn.fujitsu.com
Mon Mar 5 08:20:28 UTC 2012


Hello Dave,

I have realized the function to display anonymous members of
struct/union. There are three changes, which are listed below, and I
will take "struct page" for example.

1. anonymous members will be showed when using "struct page"
2. anonymous member, "struct page.private", will be showed together with
its offset
3. anonymous member with the address of the structure, "struct
page.private xxx", will be showed.

About the implementation, gdb code is changed, which is used to change
the output of the gdb command, "ptype ...". And function
"arg_to_datatype" is also modified to analyze anonymous member. Please
refer to the patch to get more info about implementation.

-- 
--
Regards
Qiao Nuohan


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: anon_member.patch
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20120305/bbefdd3d/attachment.ksh>


More information about the Crash-utility mailing list