From 8517910db6f96e15cd39a0590fe53c0d9e759581 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Sun, 19 Oct 2003 05:28:40 +0000 Subject: [PATCH] new constructor --- .../org/eclipse/cdt/utils/coff/parser/BinaryObject.java | 7 +++++++ .../org/eclipse/cdt/utils/elf/parser/BinaryObject.java | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryObject.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryObject.java index 5343fa2903f..f71ef98628e 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryObject.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryObject.java @@ -32,6 +32,13 @@ public class BinaryObject extends BinaryFile implements IBinaryObject { hasChanged(); } + public BinaryObject(IPath p, PE pe) throws IOException { + super(p); + loadInformation(pe); + pe.dispose(); + hasChanged(); + } + public void setType(int t) { type = t; } diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/parser/BinaryObject.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/parser/BinaryObject.java index 7030dd7ac98..fdf3d56a95a 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/parser/BinaryObject.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/parser/BinaryObject.java @@ -40,6 +40,13 @@ public class BinaryObject extends BinaryFile implements IBinaryObject { hasChanged(); } + public BinaryObject(IPath path, ElfHelper helper) throws IOException { + super(path); + loadInformation(helper); + helper.dispose(); + hasChanged(); + } + /** * @see org.eclipse.cdt.core.model.IBinaryParser.IBinaryObject#getBSS() */