mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 22:55:26 +02:00
new constructor
This commit is contained in:
parent
08d608864c
commit
8517910db6
2 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue