2011-03-01 Michael Snyder <msnyder@vmware.com>
* cli/cli-dump.c (dump_bfd_file): Check error return and warn.
This commit is contained in:
parent
777666697a
commit
53624a9319
|
@ -1,5 +1,7 @@
|
||||||
2011-03-01 Michael Snyder <msnyder@vmware.com>
|
2011-03-01 Michael Snyder <msnyder@vmware.com>
|
||||||
|
|
||||||
|
* cli/cli-dump.c (dump_bfd_file): Check error return and warn.
|
||||||
|
|
||||||
* jv-lang.c (evaluate_subexp_java): Conditional can't be true.
|
* jv-lang.c (evaluate_subexp_java): Conditional can't be true.
|
||||||
|
|
||||||
* dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
|
* dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
|
||||||
|
|
|
@ -202,7 +202,9 @@ dump_bfd_file (const char *filename, const char *mode,
|
||||||
| SEC_ALLOC
|
| SEC_ALLOC
|
||||||
| SEC_LOAD));
|
| SEC_LOAD));
|
||||||
osection->entsize = 0;
|
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
|
static void
|
||||||
|
|
Loading…
Reference in New Issue