diff options
author | Michael Snyder <msnyder@specifix.com> | 2010-05-14 20:17:36 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2010-05-14 20:17:36 +0000 |
commit | f14dc0aa828b0af6b18341cc6b3c031244eac8d3 (patch) | |
tree | 9faf3ad3ba995321b029d48937afd54108b8889a /gdb/gcore.c | |
parent | e9dff68d27e2246bd292098c52f25e92baecc6a5 (diff) | |
download | gdb-f14dc0aa828b0af6b18341cc6b3c031244eac8d3.tar.gz |
2010-05-14 Michael Snyder <msnyder@vmware.com>
* gcore.c: White space.
* gdb.c: White space.
* gdbtypes.c: White space.
* gnu-nat.c: White space.
* gnu-v2-abi.c: White space.
* gnu-v3-abi.c: White space.
Diffstat (limited to 'gdb/gcore.c')
-rw-r--r-- | gdb/gcore.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gcore.c b/gdb/gcore.c index 5c5816c033b..a38a5a357c8 100644 --- a/gdb/gcore.c +++ b/gdb/gcore.c @@ -52,6 +52,7 @@ bfd * create_gcore_bfd (char *filename) { bfd *obfd = bfd_openw (filename, default_gcore_target ()); + if (!obfd) error (_("Failed to open '%s' for output."), filename); bfd_set_format (obfd, bfd_core); @@ -413,6 +414,7 @@ gcore_create_callback (CORE_ADDR vaddr, unsigned long size, asec); bfd_vma start = obj_section_addr (objsec) & -align; bfd_vma end = (obj_section_endaddr (objsec) + align - 1) & -align; + /* Match if either the entire memory region lies inside the section (i.e. a mapping covering some pages of a large segment) or the entire section lies inside the memory region |