gdb-python : Parsing structure's each field and print them with proper value, if exists
I am writing a python script to automate debugging core dump from gdb. i am trying to print data structure which includes kernel data structures and lists(e.g. struct list_head). For example the structure is something like this: struct my_struct { struct my_hardware_context ahw; struct net_device *netdev; struct pci_dev *pdev; struct list_head mac_list; .... .... }; i am using following API tp print this structure: gdb.execute('p (*(struct my_struct *)dev_base->priv)') so i am able to print the content of 'struct my_struct' , struct my_hardware_context ahw, but not the content of pointers and