aboutsummaryrefslogtreecommitdiff
path: root/gdb/gcore.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-14 20:17:37 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-14 20:17:37 +0000
commitd8734c886e14a4840c59ad815f7b9dc81cc9276c (patch)
tree395ab2af286b87c99b9180d65d5356c99b8e9666 /gdb/gcore.c
parentbb9bcb69cdddee8069bf24321f9a0e91ffd22f32 (diff)
downloadbinutils-d8734c886e14a4840c59ad815f7b9dc81cc9276c.zip
binutils-d8734c886e14a4840c59ad815f7b9dc81cc9276c.tar.gz
binutils-d8734c886e14a4840c59ad815f7b9dc81cc9276c.tar.bz2
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gcore.c b/gdb/gcore.c
index 5c5816c..a38a5a3 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