From: Michael Snyder Date: Wed, 2 Mar 2011 01:09:52 +0000 (+0000) Subject: 2011-03-01 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53624a9319e4e154f39609188f1d8c26771bd75e;p=binutils-gdb.git 2011-03-01 Michael Snyder * cli/cli-dump.c (dump_bfd_file): Check error return and warn. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8694cb13cbc..158d5fc86e4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-03-01 Michael Snyder + * cli/cli-dump.c (dump_bfd_file): Check error return and warn. + * jv-lang.c (evaluate_subexp_java): Conditional can't be true. * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here. diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 4bba10c35b8..ac6270e6450 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