forked from acmel/dwarves
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Print more info on tag__assert_search_result()
Its about showing the tag for which we're not finding its type, so we want to know if it is a class member, a function argument, etc: Before: ⬢[acme@toolbox pahole]$ pahole --compile eelco/ovs-vswitchd_rhel8 > a /var/home/acme/git/pahole/dwarves_emit.c::typedef__emit_definitions(158): tag not found, please report to [email protected] After: ⬢[acme@toolbox pahole]$ pahole --compile eelco/ovs-vswitchd_rhel8 > a /var/home/acme/git/pahole/dwarves_emit.c::typedef__emit_definitions(158, related to the type of tag DW_TAG_typedef "_IO_lock_t"): tag not found, please report to [email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
- Loading branch information
Showing
8 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,10 +175,10 @@ void tag__delete(struct tag *tag) | |
} | ||
} | ||
|
||
void tag__not_found_die(const char *file, int line, const char *func) | ||
void tag__not_found_die(const char *file, int line, const char *func, int tag, const char *name) | ||
{ | ||
fprintf(stderr, "%s::%s(%d): tag not found, please report to " | ||
"[email protected]\n", file, func, line); | ||
fprintf(stderr, "%s::%s(%d, related to the type of tag DW_TAG_%s \"%s\"): tag not found, please report to " | ||
"[email protected]\n", file, func, line, dwarf_tag_name(tag), name); | ||
exit(1); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters