Go to file
Arnaldo Carvalho de Melo 9d21d3d72d [CLASSES]: Add support for DW_TAG_inheritance
So that languages such as C++ can have its inheritance concepts
covered, example:

[acme@newtoy examples]$ pahole qsettings.o QSettingsPrivate
/* io/qsettings_p.h:159 */
class QSettingsPrivate {
        class QObjectPrivate;        /* ancestor class */  /*  0 0 */

        /* XXX 56 bytes hole, try to pack */

        /* --- cacheline 1 boundary (32 bytes) was 24 bytes ago --- */
        class QStack<QSettingsGroup> groupStack;           /* 56 4 */
        class QString                groupPrefix;          /* 60 4 */
        /* --- cacheline 2 boundary (64 bytes) --- */
        int                          spec;                 /* 64 4 */
        bool                         fallbacks;            /* 68 1 */
        bool                         pendingChanges;       /* 69 1 */

        /* XXX 2 bytes hole, try to pack */

        enum Status                  status;               /* 72 4 */
}; /* size: 76, cachelines: 3 */
   /* sum members: 18, holes: 2, sum holes: 58 */
   /* last cacheline: 12 bytes */

Nevermind about the "/* XXX 56 bytes hole, try to pack */" and sizeof(class
QObjectPrivate) being zero, its just gcc compressing the DWARF tags avoiding
including definitions that are not used in this specific object file, i.e.
there are not accesses to 'class QObjectPrivate' members.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
2006-12-07 20:00:45 -02:00
Makefile [MAKEFILE]: Use -fPIC in CFLAGS 2006-12-05 22:05:54 -02:00
classes.c [CLASSES]: Add support for DW_TAG_inheritance 2006-12-07 20:00:45 -02:00
classes.h [CLASSES]: Make tag_name return "class" if object file is C++ 2006-12-07 17:21:52 -02:00
codiff.c [CLASSES]: Make cu__for_each_class receive a filter 2006-12-01 00:00:24 -02:00
list.h Repository creation. 2006-10-24 20:42:39 -03:00
pahole.c [PAHOLE]: First stab at implementing --packable 2006-12-07 16:14:15 -02:00
pfunct.c [CLASSES]: Make cus__for_each_cu receive an optional filter 2006-11-30 23:48:34 -02:00
prefcnt.c [CLASSES]: Make cu__for_each_class receive a filter 2006-12-01 00:00:24 -02:00