diff options
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-dump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 4bba10c..ac6270e 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.c @@ -202,7 +202,9 @@ dump_bfd_file (const char *filename, const char *mode, | SEC_ALLOC | SEC_LOAD)); osection->entsize = 0; - bfd_set_section_contents (obfd, osection, buf, 0, len); + if (!bfd_set_section_contents (obfd, osection, buf, 0, len)) + warning (_("writing dump file '%s' (%s)"), filename, + bfd_errmsg (bfd_get_error ())); } static void |