* core.c (core_files_info): Shorten output.

* exec.c (exec_files_info):  Ditto.
(build_section_table):  Ignore zero-length sections.
This commit is contained in:
John Gilmore 1991-09-28 01:31:23 +00:00
parent 39bf59520b
commit dad0e12d57
2 changed files with 18 additions and 14 deletions

View file

@ -282,13 +282,11 @@ core_files_info (t)
printf ("\tCore file `%s'.\n", bfd_get_filename(core_bfd));
for (p = t->sections; p < t->sections_end; p++) {
printf(p->bfd == core_bfd? "\tcore file ": "\tshared lib ");
printf("from %s", local_hex_string_custom (p->addr, "08"));
printf(" to %s", local_hex_string_custom (p->endaddr, "08"));
printf("\t%s", local_hex_string_custom (p->addr, "08"));
printf(" - %s is %s", local_hex_string_custom (p->endaddr, "08"),
bfd_section_name (p->bfd, p->sec_ptr));
if (p->bfd != core_bfd) {
printf(" is %s in %s",
bfd_section_name (p->bfd, p->sec_ptr),
bfd_get_filename (p->bfd));
printf(" in %s", bfd_get_filename (p->bfd));
}
printf ("\n");
}