Date: | Tue, 09 Dec 2014 10:57:15 +0000 |
---|---|
From: | Fabian Mager <fabian.mager@xxxxxxxxxxxxxx> |
Subject: | [DynInst_API:] SymtabAPI - dataUnknownType |
Hello everyone, I inspect function parameters and need to determine their sizes. This works quite well so far but currently I work with libpng and have some problems. Â Â typedef struct png_struct_def png_struct; Â Â typedef const png_struct * restrict png_const_structrp; Â Â png_get_header_ver(png_const_structrp png_ptr) {...} When inspecting the function parameter png_ptr, I expect to get the size of a pointer but instead it is 0. The dataClass is 9 which means that png_ptr is a typeTypedef. The size of such a type is derived from its baseType which I can get via getConstituentType() I assume. The baseType in this scenario has dataClass 11 which means dataUnknownType and hence size 0. The question is, how do I get the size of my parameter? Thanks, Fabian
|
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | [DynInst_API:] Dyninst 8.2.1 fails to build on Titan, Jim Galarowicz |
---|---|
Next by Date: | [DynInst_API:] Binary Rewriting using wrapFunction, Sergej Proskurin |
Previous by Thread: | Re: [DynInst_API:] Struct size computation, Fabian Mager |
Next by Thread: | Re: [DynInst_API:] SymtabAPI - dataUnknownType, Bill Williams |
Indexes: | [Date] [Thread] |