aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-10-25 09:32:06 +0000
committerJohn Gilmore <gnu@cygnus>1991-10-25 09:32:06 +0000
commitc58215f248884f65e25340da425de74461842815 (patch)
tree3fb22bcffd60e8cea8c756b64e3fdfa4db8d4386 /gdb
parent9cb602e111d316e5c1f857fbd2f33f5dfbc275b3 (diff)
downloadgdb-c58215f248884f65e25340da425de74461842815.zip
gdb-c58215f248884f65e25340da425de74461842815.tar.gz
gdb-c58215f248884f65e25340da425de74461842815.tar.bz2
* core.c (core_file_info), exec.c (exec_file_info): Print file
type. Use printf_filtered.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/core.c15
2 files changed, 12 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f999d4e..b56eae3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
Fri Oct 25 02:02:13 1991 John Gilmore (gnu at cygnus.com)
+ * core.c (core_file_info), exec.c (exec_file_info): Print file
+ type. Use printf_filtered.
+
* valops.c (value_fetch_lazy): Avoid 0-length fetches.
Thu Oct 24 23:06:40 1991 Fred Fish (fnf at cygnus.com)
diff --git a/gdb/core.c b/gdb/core.c
index 2ec4244..ba12992 100644
--- a/gdb/core.c
+++ b/gdb/core.c
@@ -279,16 +279,19 @@ core_files_info (t)
{
struct section_table *p;
- printf ("\tCore file `%s'.\n", bfd_get_filename(core_bfd));
+ printf_filtered ("\t`%s', ", bfd_get_filename(core_bfd));
+ wrap_here (" ");
+ printf_filtered ("file type %s.\n", bfd_get_target(core_bfd));
for (p = t->sections; p < t->sections_end; p++) {
- 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));
+ printf_filtered ("\t%s", local_hex_string_custom (p->addr, "08"));
+ printf_filtered (" - %s is %s",
+ local_hex_string_custom (p->endaddr, "08"),
+ bfd_section_name (p->bfd, p->sec_ptr));
if (p->bfd != core_bfd) {
- printf(" in %s", bfd_get_filename (p->bfd));
+ printf_filtered (" in %s", bfd_get_filename (p->bfd));
}
- printf ("\n");
+ printf_filtered ("\n");
}
}