pahole: Tell the user if no debugging information was found

Reported-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-02-10 19:11:32 -02:00
parent 138cc4739c
commit 698b8c136a
1 changed files with 3 additions and 1 deletions

View File

@ -1059,8 +1059,10 @@ int main(int argc, char *argv[])
}
err = cus__loadfl(cus, argv + remaining);
if (err != 0)
if (err != 0) {
fputs("pahole: No debugging information found\n", stderr);
return EXIT_FAILURE;
}
if (word_size != 0)
cus__for_each_cu(cus, cu_fixup_word_size_iterator, NULL, NULL);