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:
parent
138cc4739c
commit
698b8c136a
4
pahole.c
4
pahole.c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue