Skip to content

Commit 461f61e

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 6e665da commit 461f61e

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
@@ -2364,18 +2364,18 @@ static void type__recode_dwarf_specification(struct tag *tag, struct cu *cu)
23642364
}
23652365

23662366
static void __tag__print_abstract_origin_not_found(struct tag *tag,
2367-
const char *func)
2367+
const char *func, int line)
23682368
{
23692369
struct dwarf_tag *dtag = tag->priv;
23702370
fprintf(stderr,
2371-
"%s: couldn't find %#llx abstract_origin for %#llx (%s)!\n",
2372-
func, (unsigned long long)dtag->abstract_origin.off,
2371+
"%s(%d): couldn't find %#llx abstract_origin for %#llx (%s)!\n",
2372+
func, line, (unsigned long long)dtag->abstract_origin.off,
23732373
(unsigned long long)dtag->id,
23742374
dwarf_tag_name(tag->tag));
23752375
}
23762376

2377-
#define tag__print_abstract_origin_not_found(tag ) \
2378-
__tag__print_abstract_origin_not_found(tag, __func__)
2377+
#define tag__print_abstract_origin_not_found(tag) \
2378+
__tag__print_abstract_origin_not_found(tag, __func__, __LINE__)
23792379

23802380
static void ftype__recode_dwarf_types(struct tag *tag, struct cu *cu)
23812381
{

0 commit comments

Comments
 (0)