diff options
author | John Gilmore <gnu@cygnus> | 1991-09-28 01:31:23 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-09-28 01:31:23 +0000 |
commit | dad0e12d57c432daeabe8f9a05848a60a5d08f91 (patch) | |
tree | 64fa35a3299892ee272d5ebc6f20331e89cd63e6 /gdb/core.c | |
parent | 39bf59520b1b5d70df5a4f58273afda3d6c4d530 (diff) | |
download | gdb-dad0e12d57c432daeabe8f9a05848a60a5d08f91.zip gdb-dad0e12d57c432daeabe8f9a05848a60a5d08f91.tar.gz gdb-dad0e12d57c432daeabe8f9a05848a60a5d08f91.tar.bz2 |
* core.c (core_files_info): Shorten output.
* exec.c (exec_files_info): Ditto.
(build_section_table): Ignore zero-length sections.
Diffstat (limited to 'gdb/core.c')
-rw-r--r-- | gdb/core.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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"); } |