Skip to content

Commit bc671d6

Browse files
Fix
1 parent cd625b8 commit bc671d6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/golanganalyzerextension/GolangBinary.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@ public Address find_memory(Address base_addr, byte[] target, byte[] mask) {
165165
return memory.findBytes(base_addr, target, mask, true, monitor);
166166
}
167167

168+
public Address get_section(String name) {
169+
for (MemoryBlock mb : memory.getBlocks()) {
170+
if(mb.getName().equals(name)) {
171+
return mb.getStart();
172+
}
173+
}
174+
return null;
175+
}
176+
168177
public DataType get_unsigned_number_datatype(int size) {
169178
if(size==1) {
170179
return new ByteDataType();

0 commit comments

Comments
 (0)