Skip to content

Commit af6b978

Browse files
committed
dwarf_loader: Print the line number in addition to the function when not finding the abstract origin
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 97ba0a9 commit af6b978

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dwarf_loader.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,18 +2263,18 @@ static void type__recode_dwarf_specification(struct tag *tag, struct cu *cu)
22632263
}
22642264

22652265
static void __tag__print_abstract_origin_not_found(struct tag *tag,
2266-
const char *func)
2266+
const char *func, int line)
22672267
{
22682268
struct dwarf_tag *dtag = tag->priv;
22692269
fprintf(stderr,
2270-
"%s: couldn't find %#llx abstract_origin for %#llx (%s)!\n",
2271-
func, (unsigned long long)dtag->abstract_origin.off,
2270+
"%s(%d): couldn't find %#llx abstract_origin for %#llx (%s)!\n",
2271+
func, line, (unsigned long long)dtag->abstract_origin.off,
22722272
(unsigned long long)dtag->id,
22732273
dwarf_tag_name(tag->tag));
22742274
}
22752275

2276-
#define tag__print_abstract_origin_not_found(tag ) \
2277-
__tag__print_abstract_origin_not_found(tag, __func__)
2276+
#define tag__print_abstract_origin_not_found(tag) \
2277+
__tag__print_abstract_origin_not_found(tag, __func__, __LINE__)
22782278

22792279
static void ftype__recode_dwarf_types(struct tag *tag, struct cu *cu)
22802280
{

0 commit comments

Comments
 (0)