aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2022-12-19 11:42:22 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2024-02-21 11:22:40 -0300
commit461f61ebaf8f31080f8e57656ce59b54ce5c97bd (patch)
tree695ec1bd6c0d1e32210128284909889735de8ca3
parent6e665da56c78d436e0a13a0772f70ccb9bdd3f2c (diff)
downloadpahole-461f61ebaf8f31080f8e57656ce59b54ce5c97bd.tar.gz
dwarf_loader: Print the line number in addition to the function when not finding the abstract origin
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--dwarf_loader.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dwarf_loader.c b/dwarf_loader.c
index ccf31943..1dffb3f4 100644
--- a/dwarf_loader.c
+++ b/dwarf_loader.c
@@ -2364,18 +2364,18 @@ static void type__recode_dwarf_specification(struct tag *tag, struct cu *cu)
}
static void __tag__print_abstract_origin_not_found(struct tag *tag,
- const char *func)
+ const char *func, int line)
{
struct dwarf_tag *dtag = tag->priv;
fprintf(stderr,
- "%s: couldn't find %#llx abstract_origin for %#llx (%s)!\n",
- func, (unsigned long long)dtag->abstract_origin.off,
+ "%s(%d): couldn't find %#llx abstract_origin for %#llx (%s)!\n",
+ func, line, (unsigned long long)dtag->abstract_origin.off,
(unsigned long long)dtag->id,
dwarf_tag_name(tag->tag));
}
-#define tag__print_abstract_origin_not_found(tag ) \
- __tag__print_abstract_origin_not_found(tag, __func__)
+#define tag__print_abstract_origin_not_found(tag) \
+ __tag__print_abstract_origin_not_found(tag, __func__, __LINE__)
static void ftype__recode_dwarf_types(struct tag *tag, struct cu *cu)
{