pahole: expand named typedefs if expanding types is requested#35
pahole: expand named typedefs if expanding types is requested#35wafgo wants to merge 1 commit intoacmel:masterfrom
Conversation
If your code contains named typedefs like
typedef struct foo_s {
/*some stuff here*/
}foo;
and your run pahole with something like pahole -E -C foo <ELF> it only
prints something like this
typedef struct foo_s foo
I think what the user would like (at least this is what I was expecting) is
that the typedef is expanded.
I know that this is irrelevant for the linux kernel because nobody is
doing such silly stuff there. But there is a lot of strange software
out there which typedefs nearly every structure for some reason.
I think applying this patch would make pahole -E more intuitive
Signed-off-by: Wadim Mueller <wafgo01@gmail.com>
|
It used to print definition of the structure in this case and now even typedef struct foo {
// ...
} foo;the only way to see the definition seems to be to list all of them and find the needed one in the output ( EDIT: actually, looks like it works fine when |
|
Needed to use |
If your code contains named typedefs like
typedef struct foo_s {
/some stuff here/
}foo;
and your run pahole with something like pahole -E -C foo it only prints something like this
typedef struct foo_s foo
I think what the user would like (at least this is what I was expecting) is that the typedef is expanded.
I know that this is irrelevant for the linux kernel because nobody is doing such silly stuff there. But there is a lot of strange software out there which typedefs nearly every structure for some reason.
I think applying this patch would make pahole -E more intuitive
Signed-off-by: Wadim Mueller wafgo01@gmail.com