aboutsummaryrefslogtreecommitdiff
path: root/gdb/core.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-09-28 01:31:23 +0000
committerJohn Gilmore <gnu@cygnus>1991-09-28 01:31:23 +0000
commitdad0e12d57c432daeabe8f9a05848a60a5d08f91 (patch)
tree64fa35a3299892ee272d5ebc6f20331e89cd63e6 /gdb/core.c
parent39bf59520b1b5d70df5a4f58273afda3d6c4d530 (diff)
downloadgdb-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.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/core.c b/gdb/core.c
index b4f812a..c56281b 100644
--- a/gdb/core.c
+++ b/gdb/core.c
@@ -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");
}