Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/utils/dumper.cc')
-rw-r--r--winsup/utils/dumper.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/utils/dumper.cc b/winsup/utils/dumper.cc
index 5a9beec93..aec8b12a3 100644
--- a/winsup/utils/dumper.cc
+++ b/winsup/utils/dumper.cc
@@ -1,6 +1,6 @@
/* dumper.cc
- Copyright 1999, 2001, 2002 Red Hat Inc.
+ Copyright 1999, 2001, 2002, 2004 Red Hat Inc.
Written by Egor Duda <deo@logos-m.ru>
@@ -689,7 +689,8 @@ dumper::prepare_core_dump ()
{
if (!bfd_set_section_size (core_bfd,
status_section,
- status_section->_raw_size + sect_size))
+ (bfd_get_section_size (status_section)
+ + sect_size)))
{
bfd_perror ("resizing status section");
goto failed;
@@ -746,7 +747,7 @@ dumper::write_core_dump ()
deb_printf ("writing section type=%u base=%08x size=%08x flags=%08x\n",
p->type,
p->section->vma,
- p->section->_raw_size,
+ bfd_get_section_size (p->section),
p->section->flags);
switch (p->type)