aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-02 01:09:52 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-02 01:09:52 +0000
commit53624a9319e4e154f39609188f1d8c26771bd75e (patch)
treeb6b162529fb694aed669dabc91e5ddf3a91e1aed /gdb/cli
parent777666697aa35368f095be1fdede3cb4d3d2d183 (diff)
downloadgdb-53624a9319e4e154f39609188f1d8c26771bd75e.zip
gdb-53624a9319e4e154f39609188f1d8c26771bd75e.tar.gz
gdb-53624a9319e4e154f39609188f1d8c26771bd75e.tar.bz2
2011-03-01 Michael Snyder <msnyder@vmware.com>
* cli/cli-dump.c (dump_bfd_file): Check error return and warn.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-dump.c4
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