mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-0: Fixing @Override warnings
This commit is contained in:
parent
d4120b4b4d
commit
a6cd5b5dbc
449 changed files with 2348 additions and 1276 deletions
|
@ -24,6 +24,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getShort(byte[])
|
* @see GDataConverter#getShort(byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final short getShort(byte[] b) {
|
public final short getShort(byte[] b) {
|
||||||
return getShort(b, 0);
|
return getShort(b, 0);
|
||||||
}
|
}
|
||||||
|
@ -31,6 +32,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getShort(byte[], int)
|
* @see GDataConverter#getShort(byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public short getShort(byte[] b, int offset) {
|
public short getShort(byte[] b, int offset) {
|
||||||
return (short) (((b[offset] & 0xff) << 8) | (b[offset + 1] & 0xff));
|
return (short) (((b[offset] & 0xff) << 8) | (b[offset + 1] & 0xff));
|
||||||
}
|
}
|
||||||
|
@ -38,6 +40,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getInt(byte[])
|
* @see GDataConverter#getInt(byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final int getInt(byte[] b) {
|
public final int getInt(byte[] b) {
|
||||||
return getInt(b, 0);
|
return getInt(b, 0);
|
||||||
}
|
}
|
||||||
|
@ -45,6 +48,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getInt(byte[], int)
|
* @see GDataConverter#getInt(byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public int getInt(byte[] b, int offset) {
|
public int getInt(byte[] b, int offset) {
|
||||||
int v = b[offset];
|
int v = b[offset];
|
||||||
for (int i = 1; i < 4; i++) {
|
for (int i = 1; i < 4; i++) {
|
||||||
|
@ -56,6 +60,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getLong(byte[])
|
* @see GDataConverter#getLong(byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final long getLong(byte[] b) {
|
public final long getLong(byte[] b) {
|
||||||
return getLong(b, 0);
|
return getLong(b, 0);
|
||||||
}
|
}
|
||||||
|
@ -63,6 +68,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getLong(byte[], int)
|
* @see GDataConverter#getLong(byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public long getLong(byte[] b, int offset) {
|
public long getLong(byte[] b, int offset) {
|
||||||
long v = b[offset];
|
long v = b[offset];
|
||||||
for (int i = 1; i < 8; i++) {
|
for (int i = 1; i < 8; i++) {
|
||||||
|
@ -74,6 +80,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#getValue(byte[], int)
|
* @see GDataConverter.util.DataConverter#getValue(byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public long getValue(byte[] b, int size) {
|
public long getValue(byte[] b, int size) {
|
||||||
return getValue(b, 0, size);
|
return getValue(b, 0, size);
|
||||||
}
|
}
|
||||||
|
@ -81,6 +88,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#getValue(byte[], int, int)
|
* @see GDataConverter.util.DataConverter#getValue(byte[], int, int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public long getValue(byte[] b, int offset, int size) {
|
public long getValue(byte[] b, int offset, int size) {
|
||||||
if (size > 8) {
|
if (size > 8) {
|
||||||
throw new IndexOutOfBoundsException("size exceeds sizeof long: " + size);
|
throw new IndexOutOfBoundsException("size exceeds sizeof long: " + size);
|
||||||
|
@ -95,6 +103,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(short, byte[])
|
* @see GDataConverter#getBytes(short, byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void getBytes(short value, byte[] b) {
|
public final void getBytes(short value, byte[] b) {
|
||||||
getBytes(value, b, 0);
|
getBytes(value, b, 0);
|
||||||
}
|
}
|
||||||
|
@ -102,6 +111,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(short, byte[], int)
|
* @see GDataConverter#getBytes(short, byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void getBytes(short value, byte[] b, int offset) {
|
public void getBytes(short value, byte[] b, int offset) {
|
||||||
b[offset] = (byte) (value >> 8);
|
b[offset] = (byte) (value >> 8);
|
||||||
b[offset + 1] = (byte) (value & 0xff);
|
b[offset + 1] = (byte) (value & 0xff);
|
||||||
|
@ -110,6 +120,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(int, byte[])
|
* @see GDataConverter#getBytes(int, byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void getBytes(int value, byte[] b) {
|
public final void getBytes(int value, byte[] b) {
|
||||||
getBytes(value, b, 0);
|
getBytes(value, b, 0);
|
||||||
}
|
}
|
||||||
|
@ -117,6 +128,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(int, byte[], int)
|
* @see GDataConverter#getBytes(int, byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void getBytes(int value, byte[] b, int offset) {
|
public void getBytes(int value, byte[] b, int offset) {
|
||||||
b[offset + 3] = (byte) (value);
|
b[offset + 3] = (byte) (value);
|
||||||
for (int i = 2; i >= 0; i--) {
|
for (int i = 2; i >= 0; i--) {
|
||||||
|
@ -128,6 +140,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(long, byte[])
|
* @see GDataConverter#getBytes(long, byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void getBytes(long value, byte[] b) {
|
public final void getBytes(long value, byte[] b) {
|
||||||
getBytes(value, 8, b, 0);
|
getBytes(value, 8, b, 0);
|
||||||
}
|
}
|
||||||
|
@ -135,6 +148,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(long, byte[], int)
|
* @see GDataConverter#getBytes(long, byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void getBytes(long value, byte[] b, int offset) {
|
public void getBytes(long value, byte[] b, int offset) {
|
||||||
getBytes(value, 8, b, offset);
|
getBytes(value, 8, b, offset);
|
||||||
}
|
}
|
||||||
|
@ -142,6 +156,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#getBytes(long, int, byte[], int)
|
* @see GDataConverter.util.DataConverter#getBytes(long, int, byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void getBytes(long value, int size, byte[] b, int offset) {
|
public void getBytes(long value, int size, byte[] b, int offset) {
|
||||||
for (int i = size - 1; i >= 0; i--) {
|
for (int i = size - 1; i >= 0; i--) {
|
||||||
b[offset + i] = (byte) value;
|
b[offset + i] = (byte) value;
|
||||||
|
@ -152,6 +167,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#putInt(byte[], int, int)
|
* @see GDataConverter.util.DataConverter#putInt(byte[], int, int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putInt(byte[] b, int offset, int value) {
|
public final void putInt(byte[] b, int offset, int value) {
|
||||||
getBytes(value, b, offset);
|
getBytes(value, b, offset);
|
||||||
}
|
}
|
||||||
|
@ -159,6 +175,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#putInt(byte[], int)
|
* @see GDataConverter.util.DataConverter#putInt(byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putInt(byte[] b, int value) {
|
public final void putInt(byte[] b, int value) {
|
||||||
getBytes(value, b);
|
getBytes(value, b);
|
||||||
}
|
}
|
||||||
|
@ -166,6 +183,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#putLong(byte[], int, long)
|
* @see GDataConverter.util.DataConverter#putLong(byte[], int, long)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putLong(byte[] b, int offset, long value) {
|
public final void putLong(byte[] b, int offset, long value) {
|
||||||
getBytes(value, b, offset);
|
getBytes(value, b, offset);
|
||||||
}
|
}
|
||||||
|
@ -173,6 +191,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#putLong(byte[], long)
|
* @see GDataConverter.util.DataConverter#putLong(byte[], long)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putLong(byte[] b, long value) {
|
public final void putLong(byte[] b, long value) {
|
||||||
getBytes(value, b);
|
getBytes(value, b);
|
||||||
}
|
}
|
||||||
|
@ -180,6 +199,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#putShort(byte[], int, short)
|
* @see GDataConverter.util.DataConverter#putShort(byte[], int, short)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putShort(byte[] b, int offset, short value) {
|
public final void putShort(byte[] b, int offset, short value) {
|
||||||
getBytes(value, b, offset);
|
getBytes(value, b, offset);
|
||||||
}
|
}
|
||||||
|
@ -187,6 +207,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#putShort(byte[], short)
|
* @see GDataConverter.util.DataConverter#putShort(byte[], short)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putShort(byte[] b, short value) {
|
public final void putShort(byte[] b, short value) {
|
||||||
getBytes(value, b);
|
getBytes(value, b);
|
||||||
}
|
}
|
||||||
|
@ -194,6 +215,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#getBytes(int)
|
* @see GDataConverter.util.DataConverter#getBytes(int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public byte[] getBytes(int value) {
|
public byte[] getBytes(int value) {
|
||||||
byte[] bytes = new byte[4];
|
byte[] bytes = new byte[4];
|
||||||
getBytes(value, bytes);
|
getBytes(value, bytes);
|
||||||
|
@ -203,6 +225,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#getBytes(long)
|
* @see GDataConverter.util.DataConverter#getBytes(long)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public byte[] getBytes(long value) {
|
public byte[] getBytes(long value) {
|
||||||
byte[] bytes = new byte[8];
|
byte[] bytes = new byte[8];
|
||||||
getBytes(value, bytes);
|
getBytes(value, bytes);
|
||||||
|
@ -212,6 +235,7 @@ public class GDataConverterBE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter.util.DataConverter#getBytes(short)
|
* @see GDataConverter.util.DataConverter#getBytes(short)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public byte[] getBytes(short value) {
|
public byte[] getBytes(short value) {
|
||||||
byte[] bytes = new byte[2];
|
byte[] bytes = new byte[2];
|
||||||
getBytes(value, bytes);
|
getBytes(value, bytes);
|
||||||
|
|
|
@ -23,6 +23,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getShort(byte[])
|
* @see GDataConverter#getShort(byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final short getShort(byte[] b) {
|
public final short getShort(byte[] b) {
|
||||||
return getShort(b, 0);
|
return getShort(b, 0);
|
||||||
}
|
}
|
||||||
|
@ -30,6 +31,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getShort(byte[], int)
|
* @see GDataConverter#getShort(byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public short getShort(byte[] b, int offset) {
|
public short getShort(byte[] b, int offset) {
|
||||||
return (short) (((b[offset + 1] & 0xff) << 8) | (b[offset] & 0xff));
|
return (short) (((b[offset + 1] & 0xff) << 8) | (b[offset] & 0xff));
|
||||||
}
|
}
|
||||||
|
@ -37,6 +39,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getInt(byte[])
|
* @see GDataConverter#getInt(byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final int getInt(byte[] b) {
|
public final int getInt(byte[] b) {
|
||||||
return getInt(b, 0);
|
return getInt(b, 0);
|
||||||
}
|
}
|
||||||
|
@ -44,6 +47,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getInt(byte[], int)
|
* @see GDataConverter#getInt(byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public int getInt(byte[] b, int offset) {
|
public int getInt(byte[] b, int offset) {
|
||||||
int v = b[offset + 3];
|
int v = b[offset + 3];
|
||||||
for (int i = 2; i >= 0; i--) {
|
for (int i = 2; i >= 0; i--) {
|
||||||
|
@ -55,6 +59,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getLong(byte[])
|
* @see GDataConverter#getLong(byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final long getLong(byte[] b) {
|
public final long getLong(byte[] b) {
|
||||||
return getLong(b, 0);
|
return getLong(b, 0);
|
||||||
}
|
}
|
||||||
|
@ -62,6 +67,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getLong(byte[], int)
|
* @see GDataConverter#getLong(byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public long getLong(byte[] b, int offset) {
|
public long getLong(byte[] b, int offset) {
|
||||||
long v = b[offset + 7];
|
long v = b[offset + 7];
|
||||||
for (int i = 6; i >= 0; i--) {
|
for (int i = 6; i >= 0; i--) {
|
||||||
|
@ -73,6 +79,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#getValue(byte[], int)
|
* @see ghidra.util.GDataConverter#getValue(byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public long getValue(byte[] b, int size) {
|
public long getValue(byte[] b, int size) {
|
||||||
return getValue(b, 0, size);
|
return getValue(b, 0, size);
|
||||||
}
|
}
|
||||||
|
@ -80,6 +87,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#getValue(byte[], int, int)
|
* @see ghidra.util.GDataConverter#getValue(byte[], int, int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public long getValue(byte[] b, int offset, int size) {
|
public long getValue(byte[] b, int offset, int size) {
|
||||||
if (size > 8) {
|
if (size > 8) {
|
||||||
throw new IndexOutOfBoundsException("size exceeds sizeof long: " + size);
|
throw new IndexOutOfBoundsException("size exceeds sizeof long: " + size);
|
||||||
|
@ -94,6 +102,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(short, byte[])
|
* @see GDataConverter#getBytes(short, byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void getBytes(short value, byte[] b) {
|
public final void getBytes(short value, byte[] b) {
|
||||||
getBytes(value, b, 0);
|
getBytes(value, b, 0);
|
||||||
}
|
}
|
||||||
|
@ -101,6 +110,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(short, byte[], int)
|
* @see GDataConverter#getBytes(short, byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void getBytes(short value, byte[] b, int offset) {
|
public void getBytes(short value, byte[] b, int offset) {
|
||||||
b[offset + 1] = (byte) (value >> 8);
|
b[offset + 1] = (byte) (value >> 8);
|
||||||
b[offset] = (byte) (value & 0xff);
|
b[offset] = (byte) (value & 0xff);
|
||||||
|
@ -109,6 +119,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(int, byte[])
|
* @see GDataConverter#getBytes(int, byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void getBytes(int value, byte[] b) {
|
public final void getBytes(int value, byte[] b) {
|
||||||
getBytes(value, b, 0);
|
getBytes(value, b, 0);
|
||||||
}
|
}
|
||||||
|
@ -116,6 +127,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(int, byte[], int)
|
* @see GDataConverter#getBytes(int, byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void getBytes(int value, byte[] b, int offset) {
|
public void getBytes(int value, byte[] b, int offset) {
|
||||||
b[offset] = (byte) (value);
|
b[offset] = (byte) (value);
|
||||||
for (int i = 1; i < 4; i++) {
|
for (int i = 1; i < 4; i++) {
|
||||||
|
@ -127,6 +139,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(long, byte[])
|
* @see GDataConverter#getBytes(long, byte[])
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void getBytes(long value, byte[] b) {
|
public final void getBytes(long value, byte[] b) {
|
||||||
getBytes(value, 8, b, 0);
|
getBytes(value, 8, b, 0);
|
||||||
}
|
}
|
||||||
|
@ -134,6 +147,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see GDataConverter#getBytes(long, byte[], int)
|
* @see GDataConverter#getBytes(long, byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void getBytes(long value, byte[] b, int offset) {
|
public void getBytes(long value, byte[] b, int offset) {
|
||||||
getBytes(value, 8, b, offset);
|
getBytes(value, 8, b, offset);
|
||||||
}
|
}
|
||||||
|
@ -141,6 +155,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#getBytes(long, int, byte[], int)
|
* @see ghidra.util.GDataConverter#getBytes(long, int, byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void getBytes(long value, int size, byte[] b, int offset) {
|
public void getBytes(long value, int size, byte[] b, int offset) {
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
b[offset + i] = (byte) value;
|
b[offset + i] = (byte) value;
|
||||||
|
@ -151,6 +166,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#putInt(byte[], int, int)
|
* @see ghidra.util.GDataConverter#putInt(byte[], int, int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putInt(byte[] b, int offset, int value) {
|
public final void putInt(byte[] b, int offset, int value) {
|
||||||
getBytes(value, b, offset);
|
getBytes(value, b, offset);
|
||||||
}
|
}
|
||||||
|
@ -158,6 +174,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#putInt(byte[], int)
|
* @see ghidra.util.GDataConverter#putInt(byte[], int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putInt(byte[] b, int value) {
|
public final void putInt(byte[] b, int value) {
|
||||||
getBytes(value, b);
|
getBytes(value, b);
|
||||||
}
|
}
|
||||||
|
@ -165,6 +182,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#putLong(byte[], int, long)
|
* @see ghidra.util.GDataConverter#putLong(byte[], int, long)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putLong(byte[] b, int offset, long value) {
|
public final void putLong(byte[] b, int offset, long value) {
|
||||||
getBytes(value, b, offset);
|
getBytes(value, b, offset);
|
||||||
}
|
}
|
||||||
|
@ -172,6 +190,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#putLong(byte[], long)
|
* @see ghidra.util.GDataConverter#putLong(byte[], long)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putLong(byte[] b, long value) {
|
public final void putLong(byte[] b, long value) {
|
||||||
getBytes(value, b);
|
getBytes(value, b);
|
||||||
}
|
}
|
||||||
|
@ -179,6 +198,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#putShort(byte[], int, short)
|
* @see ghidra.util.GDataConverter#putShort(byte[], int, short)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putShort(byte[] b, int offset, short value) {
|
public final void putShort(byte[] b, int offset, short value) {
|
||||||
getBytes(value, b, offset);
|
getBytes(value, b, offset);
|
||||||
}
|
}
|
||||||
|
@ -186,6 +206,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#putShort(byte[], short)
|
* @see ghidra.util.GDataConverter#putShort(byte[], short)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final void putShort(byte[] b, short value) {
|
public final void putShort(byte[] b, short value) {
|
||||||
getBytes(value, b);
|
getBytes(value, b);
|
||||||
}
|
}
|
||||||
|
@ -193,6 +214,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#getBytes(int)
|
* @see ghidra.util.GDataConverter#getBytes(int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public byte[] getBytes(int value) {
|
public byte[] getBytes(int value) {
|
||||||
byte[] bytes = new byte[4];
|
byte[] bytes = new byte[4];
|
||||||
getBytes(value, bytes);
|
getBytes(value, bytes);
|
||||||
|
@ -202,6 +224,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#getBytes(long)
|
* @see ghidra.util.GDataConverter#getBytes(long)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public byte[] getBytes(long value) {
|
public byte[] getBytes(long value) {
|
||||||
byte[] bytes = new byte[8];
|
byte[] bytes = new byte[8];
|
||||||
getBytes(value, bytes);
|
getBytes(value, bytes);
|
||||||
|
@ -211,6 +234,7 @@ public class GDataConverterLE implements GDataConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.util.GDataConverter#getBytes(short)
|
* @see ghidra.util.GDataConverter#getBytes(short)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public byte[] getBytes(short value) {
|
public byte[] getBytes(short value) {
|
||||||
byte[] bytes = new byte[2];
|
byte[] bytes = new byte[2];
|
||||||
getBytes(value, bytes);
|
getBytes(value, bytes);
|
||||||
|
|
|
@ -98,6 +98,7 @@ public abstract class AbstractIsfWriter implements Closeable {
|
||||||
gson.toJson(object, writer);
|
gson.toJson(object, writer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
if (writer != null) {
|
if (writer != null) {
|
||||||
writer.flush();
|
writer.flush();
|
||||||
|
|
|
@ -49,10 +49,13 @@ public interface TraceObjectMemoryRegion extends TraceMemoryRegion, TraceObjectI
|
||||||
|
|
||||||
void setRange(Lifespan lifespan, AddressRange range);
|
void setRange(Lifespan lifespan, AddressRange range);
|
||||||
|
|
||||||
|
@Override
|
||||||
AddressRange getRange(long snap);
|
AddressRange getRange(long snap);
|
||||||
|
|
||||||
|
@Override
|
||||||
Address getMinAddress(long snap);
|
Address getMinAddress(long snap);
|
||||||
|
|
||||||
|
@Override
|
||||||
Address getMaxAddress(long snap);
|
Address getMaxAddress(long snap);
|
||||||
|
|
||||||
void setFlags(Lifespan lifespan, Collection<TraceMemoryFlag> flags);
|
void setFlags(Lifespan lifespan, Collection<TraceMemoryFlag> flags);
|
||||||
|
@ -61,5 +64,6 @@ public interface TraceObjectMemoryRegion extends TraceMemoryRegion, TraceObjectI
|
||||||
|
|
||||||
void clearFlags(Lifespan lifespan, Collection<TraceMemoryFlag> flags);
|
void clearFlags(Lifespan lifespan, Collection<TraceMemoryFlag> flags);
|
||||||
|
|
||||||
|
@Override
|
||||||
Set<TraceMemoryFlag> getFlags(long snap);
|
Set<TraceMemoryFlag> getFlags(long snap);
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,6 +186,7 @@ public interface Rectangle2D<X, Y, R extends Rectangle2D<X, Y, R>> extends Bound
|
||||||
* @param shape the other (presumably-inner) rectangle
|
* @param shape the other (presumably-inner) rectangle
|
||||||
* @return true if this rectangle encloses the other
|
* @return true if this rectangle encloses the other
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
default boolean encloses(R shape) {
|
default boolean encloses(R shape) {
|
||||||
return encloses(this, shape);
|
return encloses(this, shape);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ public abstract class SampleGraphLayoutProvider
|
||||||
public abstract VisualGraphLayout<SampleVertex, SampleEdge> getLayout(SampleGraph g,
|
public abstract VisualGraphLayout<SampleVertex, SampleEdge> getLayout(SampleGraph g,
|
||||||
TaskMonitor monitor) throws CancelledException;
|
TaskMonitor monitor) throws CancelledException;
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void initVertexLocations(SampleGraph g, Layout<SampleVertex, SampleEdge> layout) {
|
protected void initVertexLocations(SampleGraph g, Layout<SampleVertex, SampleEdge> layout) {
|
||||||
Collection<SampleVertex> vertices = g.getVertices();
|
Collection<SampleVertex> vertices = g.getVertices();
|
||||||
for (SampleVertex v : vertices) {
|
for (SampleVertex v : vertices) {
|
||||||
|
|
|
@ -145,6 +145,7 @@ public class MultiChoiceBSimValueEditor implements BSimValueEditor {
|
||||||
return component;
|
return component;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean hasValidValues() {
|
public boolean hasValidValues() {
|
||||||
return isValid;
|
return isValid;
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,6 +105,7 @@ public class StringBSimValueEditor implements BSimValueEditor {
|
||||||
return textField;
|
return textField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean hasValidValues() {
|
public boolean hasValidValues() {
|
||||||
return isValid;
|
return isValid;
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,6 +93,7 @@ public class BSimSearchDialog extends AbstractBSimSearchDialog {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected JPanel buildServerPanel() {
|
protected JPanel buildServerPanel() {
|
||||||
JPanel panel = super.buildServerPanel();
|
JPanel panel = super.buildServerPanel();
|
||||||
panel.add(new JLabel("Function(s): "));
|
panel.add(new JLabel("Function(s): "));
|
||||||
|
@ -100,6 +101,7 @@ public class BSimSearchDialog extends AbstractBSimSearchDialog {
|
||||||
return panel;
|
return panel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected JPanel buildCenterPanel() {
|
protected JPanel buildCenterPanel() {
|
||||||
filterPanel = new BSimFilterPanel(this::filterPanelChanged);
|
filterPanel = new BSimFilterPanel(this::filterPanelChanged);
|
||||||
return createTitledPanel("Filters:", filterPanel, true);
|
return createTitledPanel("Filters:", filterPanel, true);
|
||||||
|
|
|
@ -32,6 +32,7 @@ public abstract class IDElasticResolution {
|
||||||
idString = null;
|
idString = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void resolve(ElasticDatabase database,ExecutableRecord exe) throws ElasticException {
|
public void resolve(ElasticDatabase database,ExecutableRecord exe) throws ElasticException {
|
||||||
if (idString == null)
|
if (idString == null)
|
||||||
idString = database.recoverExternalFunctionId(exeName, funcName, exe.getArchitecture());
|
idString = database.recoverExternalFunctionId(exeName, funcName, exe.getArchitecture());
|
||||||
|
|
|
@ -41,6 +41,7 @@ public class AdjustVectorIndex extends BSimQuery<ResponseAdjustIndex> {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see ghidra.query.protocol.QueryResponseRecord#buildResponseTemplate()
|
* @see ghidra.query.protocol.QueryResponseRecord#buildResponseTemplate()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void buildResponseTemplate() {
|
public void buildResponseTemplate() {
|
||||||
if (response == null)
|
if (response == null)
|
||||||
response = adjustresponse = new ResponseAdjustIndex();
|
response = adjustresponse = new ResponseAdjustIndex();
|
||||||
|
|
|
@ -27,6 +27,7 @@ public class ChildAtom extends FilterAtom {
|
||||||
public String name = null; // Name of the child function
|
public String name = null; // Name of the child function
|
||||||
public String exename = null; // Name of the executable (or library) containing the child (or null)
|
public String exename = null; // Name of the executable (or library) containing the child (or null)
|
||||||
|
|
||||||
|
@Override
|
||||||
public void saveXml(Writer fwrite) throws IOException {
|
public void saveXml(Writer fwrite) throws IOException {
|
||||||
fwrite.append("<childatom");
|
fwrite.append("<childatom");
|
||||||
type.saveXml(fwrite);
|
type.saveXml(fwrite);
|
||||||
|
@ -49,6 +50,7 @@ public class ChildAtom extends FilterAtom {
|
||||||
name = parser.end(el).getText();
|
name = parser.end(el).getText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public FilterAtom clone() {
|
public FilterAtom clone() {
|
||||||
ChildAtom newatom = new ChildAtom();
|
ChildAtom newatom = new ChildAtom();
|
||||||
newatom.type = type;
|
newatom.type = type;
|
||||||
|
@ -58,6 +60,7 @@ public class ChildAtom extends FilterAtom {
|
||||||
return newatom;
|
return newatom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getInfoString() {
|
public String getInfoString() {
|
||||||
if (name == null)
|
if (name == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -20,6 +19,7 @@ import ghidra.program.model.mem.Memory;
|
||||||
|
|
||||||
public class GenerateMaskedBitStringScript extends GhidraScript {
|
public class GenerateMaskedBitStringScript extends GhidraScript {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void run() throws Exception {
|
public void run() throws Exception {
|
||||||
Memory mem = currentProgram.getMemory();
|
Memory mem = currentProgram.getMemory();
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ import java.util.Iterator;
|
||||||
|
|
||||||
public class ReportDisassemblyErrors extends GhidraScript {
|
public class ReportDisassemblyErrors extends GhidraScript {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void run() throws Exception {
|
public void run() throws Exception {
|
||||||
Program prog = currentProgram;
|
Program prog = currentProgram;
|
||||||
Iterator<Bookmark> bookmarkIter = prog.getBookmarkManager().getBookmarksIterator("Error");
|
Iterator<Bookmark> bookmarkIter = prog.getBookmarkManager().getBookmarksIterator("Error");
|
||||||
|
|
|
@ -23,6 +23,7 @@ import ghidra.app.script.GhidraScript;
|
||||||
|
|
||||||
public class TurnOffStackAnalysis extends GhidraScript {
|
public class TurnOffStackAnalysis extends GhidraScript {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void run() throws Exception {
|
public void run() throws Exception {
|
||||||
|
|
||||||
setAnalysisOption(currentProgram, "Stack", "false");
|
setAnalysisOption(currentProgram, "Stack", "false");
|
||||||
|
|
|
@ -32,6 +32,7 @@ public abstract class AbstractBinaryFormatAnalyzer extends AbstractAnalyzer {
|
||||||
this.command = command;
|
this.command = command;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
final public boolean added(Program program, AddressSetView set, TaskMonitor monitor,
|
final public boolean added(Program program, AddressSetView set, TaskMonitor monitor,
|
||||||
MessageLog log) throws CancelledException {
|
MessageLog log) throws CancelledException {
|
||||||
|
|
||||||
|
@ -48,10 +49,12 @@ public abstract class AbstractBinaryFormatAnalyzer extends AbstractAnalyzer {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
final public boolean canAnalyze(Program program) {
|
final public boolean canAnalyze(Program program) {
|
||||||
return command.canApply(program);
|
return command.canApply(program);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
final public boolean getDefaultEnablement(Program program) {
|
final public boolean getDefaultEnablement(Program program) {
|
||||||
return command.canApply(program);
|
return command.canApply(program);
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,6 +101,7 @@ public class MoveBlockTask extends ProgramTask {
|
||||||
throw new RollbackException(statusMessage, cause);
|
throw new RollbackException(statusMessage, cause);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
|
@ -406,6 +406,7 @@ class UserDefinedPropertyMerger extends AbstractListingMerger {
|
||||||
this.currentAddress = addr;
|
this.currentAddress = addr;
|
||||||
try {
|
try {
|
||||||
final ChangeListener changeListener = new ChangeListener() {
|
final ChangeListener changeListener = new ChangeListener() {
|
||||||
|
@Override
|
||||||
public void stateChanged(ChangeEvent e) {
|
public void stateChanged(ChangeEvent e) {
|
||||||
conflictOption = conflictPanel.getSelectedOptions();
|
conflictOption = conflictPanel.getSelectedOptions();
|
||||||
if (conflictOption == ASK_USER) {
|
if (conflictOption == ASK_USER) {
|
||||||
|
@ -425,12 +426,14 @@ class UserDefinedPropertyMerger extends AbstractListingMerger {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
SwingUtilities.invokeAndWait(new Runnable() {
|
SwingUtilities.invokeAndWait(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
setupConflictsPanel(listingPanel, UserDefinedPropertyMerger.this.propertyName,
|
setupConflictsPanel(listingPanel, UserDefinedPropertyMerger.this.propertyName,
|
||||||
UserDefinedPropertyMerger.this.currentAddress, changeListener);
|
UserDefinedPropertyMerger.this.currentAddress, changeListener);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
SwingUtilities.invokeLater(new Runnable() {
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
listingPanel.clearAllBackgrounds();
|
listingPanel.clearAllBackgrounds();
|
||||||
listingPanel.paintAllBackgrounds(new AddressSet(addr, addr));
|
listingPanel.paintAllBackgrounds(new AddressSet(addr, addr));
|
||||||
|
|
|
@ -86,6 +86,7 @@ public class PropertyListMergeManager implements MergeResolver {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see ghidra.app.merge.MergeResolver#apply()
|
* @see ghidra.app.merge.MergeResolver#apply()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void apply() {
|
public void apply() {
|
||||||
conflictOption = mergePanel.getSelectedOption();
|
conflictOption = mergePanel.getSelectedOption();
|
||||||
|
|
||||||
|
@ -99,6 +100,7 @@ public class PropertyListMergeManager implements MergeResolver {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see ghidra.app.merge.MergeResolver#cancel()
|
* @see ghidra.app.merge.MergeResolver#cancel()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void cancel() {
|
public void cancel() {
|
||||||
conflictOption = CANCELED;
|
conflictOption = CANCELED;
|
||||||
}
|
}
|
||||||
|
@ -106,6 +108,7 @@ public class PropertyListMergeManager implements MergeResolver {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see ghidra.app.merge.MergeResolver#getDescription()
|
* @see ghidra.app.merge.MergeResolver#getDescription()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
return "Merge Property Lists";
|
return "Merge Property Lists";
|
||||||
}
|
}
|
||||||
|
@ -113,6 +116,7 @@ public class PropertyListMergeManager implements MergeResolver {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see ghidra.app.merge.MergeResolver#getName()
|
* @see ghidra.app.merge.MergeResolver#getName()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "Property List Merger";
|
return "Property List Merger";
|
||||||
}
|
}
|
||||||
|
@ -120,6 +124,7 @@ public class PropertyListMergeManager implements MergeResolver {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see ghidra.app.merge.MergeResolver#merge(ghidra.util.task.TaskMonitor)
|
* @see ghidra.app.merge.MergeResolver#merge(ghidra.util.task.TaskMonitor)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void merge(TaskMonitor monitor) {
|
public void merge(TaskMonitor monitor) {
|
||||||
|
|
||||||
mergeManager.setInProgress(PROPERTY_LIST_PHASE);
|
mergeManager.setInProgress(PROPERTY_LIST_PHASE);
|
||||||
|
@ -457,6 +462,7 @@ public class PropertyListMergeManager implements MergeResolver {
|
||||||
final int totalNumConflicts) {
|
final int totalNumConflicts) {
|
||||||
try {
|
try {
|
||||||
SwingUtilities.invokeAndWait(new Runnable() {
|
SwingUtilities.invokeAndWait(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (mergePanel == null) {
|
if (mergePanel == null) {
|
||||||
mergePanel = new PropertyListMergePanel(mergeManager, totalNumConflicts);
|
mergePanel = new PropertyListMergePanel(mergeManager, totalNumConflicts);
|
||||||
|
@ -478,6 +484,7 @@ public class PropertyListMergeManager implements MergeResolver {
|
||||||
// and continue.
|
// and continue.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String[][] getPhases() {
|
public String[][] getPhases() {
|
||||||
return new String[][] { PROPERTY_LIST_PHASE };
|
return new String[][] { PROPERTY_LIST_PHASE };
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -79,6 +78,7 @@ class PropertyListMergePanel extends JPanel {
|
||||||
|
|
||||||
private ConflictPanel createConflictPanel() {
|
private ConflictPanel createConflictPanel() {
|
||||||
ChangeListener changeListener = new ChangeListener() {
|
ChangeListener changeListener = new ChangeListener() {
|
||||||
|
@Override
|
||||||
public void stateChanged(ChangeEvent e) {
|
public void stateChanged(ChangeEvent e) {
|
||||||
mergeManager.clearStatusText();
|
mergeManager.clearStatusText();
|
||||||
mergeManager.setApplyEnabled(true);
|
mergeManager.setApplyEnabled(true);
|
||||||
|
|
|
@ -187,6 +187,7 @@ public class ModuleAlgorithmPlugin extends ProgramPlugin implements BlockModelSe
|
||||||
/**
|
/**
|
||||||
* @see ghidra.app.services.BlockModelServiceListener#modelAdded(java.lang.String, int)
|
* @see ghidra.app.services.BlockModelServiceListener#modelAdded(java.lang.String, int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void modelAdded(String modeName, int modelType) {
|
public void modelAdded(String modeName, int modelType) {
|
||||||
if (modelType == BlockModelService.SUBROUTINE_MODEL) {
|
if (modelType == BlockModelService.SUBROUTINE_MODEL) {
|
||||||
updateSubroutineActions();
|
updateSubroutineActions();
|
||||||
|
@ -196,6 +197,7 @@ public class ModuleAlgorithmPlugin extends ProgramPlugin implements BlockModelSe
|
||||||
/**
|
/**
|
||||||
* @see ghidra.app.services.BlockModelServiceListener#modelRemoved(java.lang.String, int)
|
* @see ghidra.app.services.BlockModelServiceListener#modelRemoved(java.lang.String, int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void modelRemoved(String modeName, int modelType) {
|
public void modelRemoved(String modeName, int modelType) {
|
||||||
if (modelType == BlockModelService.SUBROUTINE_MODEL) {
|
if (modelType == BlockModelService.SUBROUTINE_MODEL) {
|
||||||
updateSubroutineActions();
|
updateSubroutineActions();
|
||||||
|
|
|
@ -34,6 +34,7 @@ public class AnalysisTaskList {
|
||||||
|
|
||||||
private static Comparator<AnalysisScheduler> priorityComparator =
|
private static Comparator<AnalysisScheduler> priorityComparator =
|
||||||
new Comparator<AnalysisScheduler>() {
|
new Comparator<AnalysisScheduler>() {
|
||||||
|
@Override
|
||||||
public int compare(AnalysisScheduler as1, AnalysisScheduler as2) {
|
public int compare(AnalysisScheduler as1, AnalysisScheduler as2) {
|
||||||
Analyzer a1 = as1.getAnalyzer();
|
Analyzer a1 = as1.getAnalyzer();
|
||||||
Analyzer a2 = as2.getAnalyzer();
|
Analyzer a2 = as2.getAnalyzer();
|
||||||
|
|
|
@ -449,6 +449,7 @@ public class ConstantPropagationAnalyzer extends AbstractAnalyzer {
|
||||||
* @return - set of addresses actually flowed to
|
* @return - set of addresses actually flowed to
|
||||||
* @throws CancelledException
|
* @throws CancelledException
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public AddressSetView analyzeLocation(final Program program, Address start, AddressSetView set,
|
public AddressSetView analyzeLocation(final Program program, Address start, AddressSetView set,
|
||||||
final TaskMonitor monitor) throws CancelledException {
|
final TaskMonitor monitor) throws CancelledException {
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ public class ObjectiveC2_MessageAnalyzer extends AbstractAnalyzer {
|
||||||
setPriority(AnalysisPriority.FORMAT_ANALYSIS.after());
|
setPriority(AnalysisPriority.FORMAT_ANALYSIS.after());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log)
|
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log)
|
||||||
throws CancelledException {
|
throws CancelledException {
|
||||||
AddressIterator iterator = set.getAddresses(true);
|
AddressIterator iterator = set.getAddresses(true);
|
||||||
|
@ -63,6 +64,7 @@ public class ObjectiveC2_MessageAnalyzer extends AbstractAnalyzer {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean canAnalyze(Program program) {
|
public boolean canAnalyze(Program program) {
|
||||||
return ObjectiveC2_Constants.isObjectiveC2(program);
|
return ObjectiveC2_Constants.isObjectiveC2(program);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -56,10 +55,12 @@ public class UpdateAlignmentAction extends ToggleDockingAction implements Addres
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void alignmentChanged() {
|
public void alignmentChanged() {
|
||||||
setSelected(model.getAlignment() == alignment);
|
setSelected(model.getAlignment() == alignment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void alignmentPermissionChanged() {
|
public void alignmentPermissionChanged() {
|
||||||
setSelected(model.getAlignment() == alignment);
|
setSelected(model.getAlignment() == alignment);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -33,6 +32,7 @@ public abstract class PostAnalysisValidator implements ConditionTester, Extensio
|
||||||
return program;
|
return program;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public final ConditionResult run(TaskMonitor monitor) throws CancelledException {
|
public final ConditionResult run(TaskMonitor monitor) throws CancelledException {
|
||||||
|
|
||||||
if (!program.addConsumer(this)) {
|
if (!program.addConsumer(this)) {
|
||||||
|
|
|
@ -134,6 +134,7 @@ public class CodeCompletion implements Comparable<CodeCompletion> {
|
||||||
return "CodeCompletion: '" + getDescription() + "' (" + getInsertion() + ")";
|
return "CodeCompletion: '" + getDescription() + "' (" + getInsertion() + ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int compareTo(CodeCompletion that) {
|
public int compareTo(CodeCompletion that) {
|
||||||
return this.description.compareToIgnoreCase(that.description);
|
return this.description.compareToIgnoreCase(that.description);
|
||||||
}
|
}
|
||||||
|
|
|
@ -356,6 +356,7 @@ public class DataSettingsDialog extends AbstractSettingsDialog {
|
||||||
return settingsDefinition.getSuggestedValues(sampleSelectionSettings);
|
return settingsDefinition.getSuggestedValues(sampleSelectionSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void applySettings() throws CancelledException {
|
protected void applySettings() throws CancelledException {
|
||||||
int txId = program.startTransaction(getTitle());
|
int txId = program.startTransaction(getTitle());
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -89,6 +89,7 @@ class RenameDataFieldDialog extends DialogComponentProvider {
|
||||||
|
|
||||||
setFocusComponent(recentChoices);
|
setFocusComponent(recentChoices);
|
||||||
recentChoices.addActionListener(new ActionListener() {
|
recentChoices.addActionListener(new ActionListener() {
|
||||||
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
okCallback();
|
okCallback();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -115,6 +114,7 @@ public class CopyAction extends DockingAction {
|
||||||
Transferable contents = new GTreeNodeTransferable(dragNDropHandler, list);
|
Transferable contents = new GTreeNodeTransferable(dragNDropHandler, list);
|
||||||
|
|
||||||
clipboard.setContents(contents, new ClipboardOwner() {
|
clipboard.setContents(contents, new ClipboardOwner() {
|
||||||
|
@Override
|
||||||
public void lostOwnership(Clipboard currentClipboard, Transferable transferable) {
|
public void lostOwnership(Clipboard currentClipboard, Transferable transferable) {
|
||||||
// we don't care
|
// we don't care
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -32,14 +31,17 @@ public class CenterVerticalIcon implements Icon {
|
||||||
verticalOffset = (height - icon.getIconHeight()) / 2;
|
verticalOffset = (height - icon.getIconHeight()) / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getIconHeight() {
|
public int getIconHeight() {
|
||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getIconWidth() {
|
public int getIconWidth() {
|
||||||
return icon.getIconWidth();
|
return icon.getIconWidth();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void paintIcon(Component c, Graphics g, int x, int y) {
|
public void paintIcon(Component c, Graphics g, int x, int y) {
|
||||||
icon.paintIcon(c, g, x, y + verticalOffset);
|
icon.paintIcon(c, g, x, y + verticalOffset);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,10 +42,12 @@ public class DataDropOnBrowserHandler implements ProgramDropProvider {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getPriority() {
|
public int getPriority() {
|
||||||
return 20;
|
return 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataFlavor[] getDataFlavors() {
|
public DataFlavor[] getDataFlavors() {
|
||||||
return ACCEPTABLE_FLAVORS;
|
return ACCEPTABLE_FLAVORS;
|
||||||
}
|
}
|
||||||
|
@ -53,6 +55,7 @@ public class DataDropOnBrowserHandler implements ProgramDropProvider {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.app.util.ProgramDropProvider#isDropOk(java.lang.Object, java.awt.dnd.DropTargetDragEvent)
|
* @see ghidra.app.util.ProgramDropProvider#isDropOk(java.lang.Object, java.awt.dnd.DropTargetDragEvent)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isDropOk(Object contextObj, DropTargetDragEvent evt) {
|
public boolean isDropOk(Object contextObj, DropTargetDragEvent evt) {
|
||||||
curService = null;
|
curService = null;
|
||||||
|
|
||||||
|
@ -74,6 +77,7 @@ public class DataDropOnBrowserHandler implements ProgramDropProvider {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void add(Object contextObj, Object data, DataFlavor flavor) {
|
public void add(Object contextObj, Object data, DataFlavor flavor) {
|
||||||
if (curService != null) {
|
if (curService != null) {
|
||||||
DataType dt = (DataType)data;
|
DataType dt = (DataType)data;
|
||||||
|
|
|
@ -51,6 +51,7 @@ class DataTypeComponentPreview implements Preview {
|
||||||
this.parentPreview = parent;
|
this.parentPreview = parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
String fieldName = dtc.getFieldName();
|
String fieldName = dtc.getFieldName();
|
||||||
if (fieldName == null) {
|
if (fieldName == null) {
|
||||||
|
@ -62,6 +63,7 @@ class DataTypeComponentPreview implements Preview {
|
||||||
return parentPreview.getName()+"."+fieldName;
|
return parentPreview.getName()+"."+fieldName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getPreview(Memory memory, Address addr) {
|
public String getPreview(Memory memory, Address addr) {
|
||||||
try {
|
try {
|
||||||
if (parentPreview != null) {
|
if (parentPreview != null) {
|
||||||
|
@ -77,6 +79,7 @@ class DataTypeComponentPreview implements Preview {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType getDataType() {
|
public DataType getDataType() {
|
||||||
if (parentPreview != null) {
|
if (parentPreview != null) {
|
||||||
return parentPreview.getDataType();
|
return parentPreview.getDataType();
|
||||||
|
@ -89,6 +92,7 @@ class DataTypeComponentPreview implements Preview {
|
||||||
return getName();
|
return getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int compareTo(Preview p) {
|
public int compareTo(Preview p) {
|
||||||
if (p instanceof DataTypeComponentPreview) {
|
if (p instanceof DataTypeComponentPreview) {
|
||||||
DataTypeComponentPreview that = (DataTypeComponentPreview)p;
|
DataTypeComponentPreview that = (DataTypeComponentPreview)p;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -256,6 +255,7 @@ class FallThroughModel implements ChangeListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stateChanged(ChangeEvent e) {
|
public void stateChanged(ChangeEvent e) {
|
||||||
// do nothing - just a placeholder so that we don't have to check for null listener
|
// do nothing - just a placeholder so that we don't have to check for null listener
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ public class ExternalEntryFunctionAnalyzer extends AbstractAnalyzer {
|
||||||
* Called when a function has been added.
|
* Called when a function has been added.
|
||||||
* Looks at address for call reference
|
* Looks at address for call reference
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log) {
|
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log) {
|
||||||
|
|
||||||
AddressSet funcStarts = new AddressSet();
|
AddressSet funcStarts = new AddressSet();
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -68,6 +67,7 @@ public class GroupTransferable implements Transferable {
|
||||||
/**
|
/**
|
||||||
* Return all data flavors that this class supports.
|
* Return all data flavors that this class supports.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public synchronized DataFlavor []getTransferDataFlavors() {
|
public synchronized DataFlavor []getTransferDataFlavors() {
|
||||||
return flavors;
|
return flavors;
|
||||||
}
|
}
|
||||||
|
@ -75,6 +75,7 @@ public class GroupTransferable implements Transferable {
|
||||||
/**
|
/**
|
||||||
* Return whether the specified data flavor is supported.
|
* Return whether the specified data flavor is supported.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isDataFlavorSupported(DataFlavor f) {
|
public boolean isDataFlavorSupported(DataFlavor f) {
|
||||||
return flavorList.contains(f);
|
return flavorList.contains(f);
|
||||||
}
|
}
|
||||||
|
@ -82,6 +83,7 @@ public class GroupTransferable implements Transferable {
|
||||||
/**
|
/**
|
||||||
* Return the transfer data with the given data flavor.
|
* Return the transfer data with the given data flavor.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public synchronized Object getTransferData(DataFlavor f)
|
public synchronized Object getTransferData(DataFlavor f)
|
||||||
throws UnsupportedFlavorException, IOException {
|
throws UnsupportedFlavorException, IOException {
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -91,6 +90,7 @@ abstract class EditReferencePanel extends JPanel {
|
||||||
@Override
|
@Override
|
||||||
public void requestFocus() {
|
public void requestFocus() {
|
||||||
SwingUtilities.invokeLater(new Runnable() {
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
|
KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
|
||||||
kfm.focusNextComponent(EditReferencePanel.this);
|
kfm.focusNextComponent(EditReferencePanel.this);
|
||||||
|
|
|
@ -128,6 +128,7 @@ public class StackEditorManagerPlugin extends Plugin
|
||||||
return editorMgr.canCloseDomainObject(dObj);
|
return editorMgr.canCloseDomainObject(dObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void optionsChanged(ToolOptions options, String optionName, Object oldValue,
|
public void optionsChanged(ToolOptions options, String optionName, Object oldValue,
|
||||||
Object newValue) {
|
Object newValue) {
|
||||||
setOptions(options);
|
setOptions(options);
|
||||||
|
@ -155,6 +156,7 @@ public class StackEditorManagerPlugin extends Plugin
|
||||||
options.setBoolean(HEX_NUMBERS_OPTION_NAME, showNumbersInHex);
|
options.setBoolean(HEX_NUMBERS_OPTION_NAME, showNumbersInHex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean showStackNumbersInHex() {
|
public boolean showStackNumbersInHex() {
|
||||||
return showNumbersInHex;
|
return showNumbersInHex;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -70,6 +69,7 @@ class PropertyManagerTableModel extends AbstractTableModel {
|
||||||
/*
|
/*
|
||||||
* @see javax.swing.table.TableModel#getColumnCount()
|
* @see javax.swing.table.TableModel#getColumnCount()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public int getColumnCount() {
|
public int getColumnCount() {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,7 @@ class PropertyManagerTableModel extends AbstractTableModel {
|
||||||
/*
|
/*
|
||||||
* @see javax.swing.table.TableModel#getRowCount()
|
* @see javax.swing.table.TableModel#getRowCount()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public synchronized int getRowCount() {
|
public synchronized int getRowCount() {
|
||||||
if (propertyNames != null) {
|
if (propertyNames != null) {
|
||||||
return propertyNames.length;
|
return propertyNames.length;
|
||||||
|
@ -95,6 +96,7 @@ class PropertyManagerTableModel extends AbstractTableModel {
|
||||||
/*
|
/*
|
||||||
* @see javax.swing.table.TableModel#getValueAt(int, int)
|
* @see javax.swing.table.TableModel#getValueAt(int, int)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public synchronized Object getValueAt(int rowIndex, int columnIndex) {
|
public synchronized Object getValueAt(int rowIndex, int columnIndex) {
|
||||||
if (propertyNames != null && rowIndex < propertyNames.length) {
|
if (propertyNames != null && rowIndex < propertyNames.length) {
|
||||||
return propertyNames[rowIndex];
|
return propertyNames[rowIndex];
|
||||||
|
|
|
@ -226,6 +226,7 @@ public class Match implements Comparable<Match>
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see java.lang.Comparable#compareTo(java.lang.Object)
|
* @see java.lang.Comparable#compareTo(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public int compareTo(Match m) {
|
public int compareTo(Match m) {
|
||||||
int val = getThisBeginning().compareTo( m.getThisBeginning() );
|
int val = getThisBeginning().compareTo( m.getThisBeginning() );
|
||||||
if( val != 0 )
|
if( val != 0 )
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -29,11 +28,13 @@ public abstract class AnalyzerAdapter extends AbstractAnalyzer {
|
||||||
setPriority(priority);
|
setPriority(priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log)
|
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log)
|
||||||
throws CancelledException {
|
throws CancelledException {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean getDefaultEnablement(Program program) {
|
public boolean getDefaultEnablement(Program program) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -66,6 +65,7 @@ public class CodeUnitInfoTransferable implements Transferable, ClipboardOwner {
|
||||||
/**
|
/**
|
||||||
* Return all data flavors that this class supports.
|
* Return all data flavors that this class supports.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public synchronized DataFlavor[] getTransferDataFlavors() {
|
public synchronized DataFlavor[] getTransferDataFlavors() {
|
||||||
return flavors;
|
return flavors;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,7 @@ public class CodeUnitInfoTransferable implements Transferable, ClipboardOwner {
|
||||||
/**
|
/**
|
||||||
* Return whether the specified data flavor is supported.
|
* Return whether the specified data flavor is supported.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isDataFlavorSupported(DataFlavor f) {
|
public boolean isDataFlavorSupported(DataFlavor f) {
|
||||||
return flavorList.contains(f);
|
return flavorList.contains(f);
|
||||||
}
|
}
|
||||||
|
@ -80,6 +81,7 @@ public class CodeUnitInfoTransferable implements Transferable, ClipboardOwner {
|
||||||
/**
|
/**
|
||||||
* Return the transfer data with the given data flavor.
|
* Return the transfer data with the given data flavor.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public synchronized Object getTransferData(DataFlavor f) throws UnsupportedFlavorException,
|
public synchronized Object getTransferData(DataFlavor f) throws UnsupportedFlavorException,
|
||||||
IOException {
|
IOException {
|
||||||
|
|
||||||
|
@ -101,6 +103,7 @@ public class CodeUnitInfoTransferable implements Transferable, ClipboardOwner {
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
* @see java.awt.datatransfer.ClipboardOwner#lostOwnership(java.awt.datatransfer.Clipboard, java.awt.datatransfer.Transferable)
|
* @see java.awt.datatransfer.ClipboardOwner#lostOwnership(java.awt.datatransfer.Clipboard, java.awt.datatransfer.Transferable)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void lostOwnership(Clipboard clipboard, Transferable contents) {
|
public void lostOwnership(Clipboard clipboard, Transferable contents) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -77,6 +76,7 @@ public class AoutHeader implements StructConverter {
|
||||||
return data_start;
|
return data_start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(AoutHeader.class);
|
return StructConverterUtil.toDataType(AoutHeader.class);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -45,6 +44,7 @@ public class CoffLineNumber implements StructConverter {
|
||||||
return l_lnno;
|
return l_lnno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(CoffLineNumber.class);
|
return StructConverterUtil.toDataType(CoffLineNumber.class);
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,6 +89,7 @@ public class CoffRelocation implements StructConverter {
|
||||||
return r_type;
|
return r_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
Structure struct = new StructureDataType(StructConverterUtil.parseName(CoffRelocation.class), 0);
|
Structure struct = new StructureDataType(StructConverterUtil.parseName(CoffRelocation.class), 0);
|
||||||
struct.add(DWORD, "r_vaddr", null);
|
struct.add(DWORD, "r_vaddr", null);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -77,6 +76,7 @@ public class CoffSymbolAuxArray implements CoffSymbolAux {
|
||||||
return unused;
|
return unused;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(this);
|
return StructConverterUtil.toDataType(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,6 +58,7 @@ public class CoffSymbolAuxBeginningOfBlock implements CoffSymbolAux {
|
||||||
return unused3;
|
return unused3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(this);
|
return StructConverterUtil.toDataType(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -35,6 +34,7 @@ class CoffSymbolAuxDefault implements CoffSymbolAux {
|
||||||
return bytes;
|
return bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(this);
|
return StructConverterUtil.toDataType(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -47,6 +46,7 @@ public class CoffSymbolAuxEndOfBlock implements CoffSymbolAux {
|
||||||
return unused2;
|
return unused2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(this);
|
return StructConverterUtil.toDataType(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -53,6 +52,7 @@ public class CoffSymbolAuxEndOfStruct implements CoffSymbolAux {
|
||||||
return unused2;
|
return unused2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(this);
|
return StructConverterUtil.toDataType(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -41,6 +40,7 @@ public class CoffSymbolAuxFilename implements CoffSymbolAux {
|
||||||
return unused;
|
return unused;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(this);
|
return StructConverterUtil.toDataType(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -59,6 +58,7 @@ public class CoffSymbolAuxFunction implements CoffSymbolAux {
|
||||||
return unused;
|
return unused;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(this);
|
return StructConverterUtil.toDataType(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -53,6 +52,7 @@ public class CoffSymbolAuxName implements CoffSymbolAux {
|
||||||
return unused2;
|
return unused2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(this);
|
return StructConverterUtil.toDataType(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -53,6 +52,7 @@ public class CoffSymbolAuxSection implements CoffSymbolAux {
|
||||||
return unused;
|
return unused;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(this);
|
return StructConverterUtil.toDataType(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -59,6 +58,7 @@ public class CoffSymbolAuxTagName implements CoffSymbolAux {
|
||||||
return unused3;
|
return unused3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(this);
|
return StructConverterUtil.toDataType(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,6 +112,7 @@ public final class SecondLinkerMember implements StructConverter {
|
||||||
return new ArrayList<String>(stringTable);
|
return new ArrayList<String>(stringTable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
String name = StructConverterUtil.parseName(SecondLinkerMember.class);
|
String name = StructConverterUtil.parseName(SecondLinkerMember.class);
|
||||||
String uniqueName = name + "_" + numberOfMembers + "_" + numberOfSymbols;
|
String uniqueName = name + "_" + numberOfMembers + "_" + numberOfSymbols;
|
||||||
|
|
|
@ -70,6 +70,7 @@ public class DWARFExpressionException extends Exception {
|
||||||
return step;
|
return step;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return super.getMessage() + (expr != null ? "\n" + expr.toString(step, false, false) : "");
|
return super.getMessage() + (expr != null ? "\n" + expr.toString(step, false, false) : "");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -58,6 +57,7 @@ public class GnuVerdaux implements StructConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType("Elf_Verdaux", 0);
|
StructureDataType struct = new StructureDataType("Elf_Verdaux", 0);
|
||||||
struct.add(DWORD, "vna_name", "Version or dependency names");
|
struct.add(DWORD, "vna_name", "Version or dependency names");
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -93,6 +92,7 @@ public class GnuVerdef implements StructConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType("Elf_Verdef", 0);
|
StructureDataType struct = new StructureDataType("Elf_Verdef", 0);
|
||||||
struct.add( WORD, "vd_version", "Version revision");
|
struct.add( WORD, "vd_version", "Version revision");
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -79,6 +78,7 @@ public class GnuVernaux implements StructConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType("Elf_Verdef", 0);
|
StructureDataType struct = new StructureDataType("Elf_Verdef", 0);
|
||||||
struct.add(DWORD, "vna_hash", "Hash value of dependency name");
|
struct.add(DWORD, "vna_hash", "Hash value of dependency name");
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -79,6 +78,7 @@ public class GnuVerneed implements StructConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType("Elf_Verneed", 0);
|
StructureDataType struct = new StructureDataType("Elf_Verneed", 0);
|
||||||
struct.add( WORD, "vd_version", "Version of structure");
|
struct.add( WORD, "vd_version", "Version of structure");
|
||||||
|
|
|
@ -199,6 +199,7 @@ public class GoMethod implements StructureMarkup<GoMethod> {
|
||||||
return funcAddr.equals(method.getTfn());
|
return funcAddr.equals(method.getTfn());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return type.getMethodPrototypeString(method.getName(), getMethodFuncType());
|
return type.getMethodPrototypeString(method.getName(), getMethodFuncType());
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -74,6 +73,7 @@ public class AppleSingleDouble implements StructConverter {
|
||||||
return entryList;
|
return entryList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
String name = StructConverterUtil.parseName(AppleSingleDouble.class);
|
String name = StructConverterUtil.parseName(AppleSingleDouble.class);
|
||||||
Structure struct = new StructureDataType(name, 0);
|
Structure struct = new StructureDataType(name, 0);
|
||||||
|
|
|
@ -73,6 +73,7 @@ public class EntryDescriptor implements StructConverter {
|
||||||
return _entry;
|
return _entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(EntryDescriptor.class);
|
return StructConverterUtil.toDataType(EntryDescriptor.class);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -75,6 +74,7 @@ public class CFragResource implements StructConverter {
|
||||||
return _members;
|
return _members;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(CFragResource.class);
|
return StructConverterUtil.toDataType(CFragResource.class);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -131,6 +130,7 @@ public class CFragResourceMember implements StructConverter {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
String structName = StructConverterUtil.parseName(CFragResourceMember.class);
|
String structName = StructConverterUtil.parseName(CFragResourceMember.class);
|
||||||
Structure struct = new StructureDataType(structName, 0);
|
Structure struct = new StructureDataType(structName, 0);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -40,6 +39,7 @@ public class CFragUsage1Union implements StructConverter {
|
||||||
return appStackSize;
|
return appStackSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(getClass());
|
return StructConverterUtil.toDataType(getClass());
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ public class CFragUsage2Union implements StructConverter {
|
||||||
return appSubdirID;
|
return appSubdirID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(getClass());
|
return StructConverterUtil.toDataType(getClass());
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,7 @@ public class CFragWhere1Union implements StructConverter {
|
||||||
return spaceID;
|
return spaceID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(getClass());
|
return StructConverterUtil.toDataType(getClass());
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@ public class CFragWhere2Union implements StructConverter {
|
||||||
return reserved;
|
return reserved;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(getClass());
|
return StructConverterUtil.toDataType(getClass());
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -98,6 +97,7 @@ public class ReferenceListEntry implements StructConverter {
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
String name = StructConverterUtil.parseName(ReferenceListEntry.class);
|
String name = StructConverterUtil.parseName(ReferenceListEntry.class);
|
||||||
Structure struct = new StructureDataType(name, 0);
|
Structure struct = new StructureDataType(name, 0);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -102,6 +101,7 @@ public class ResourceHeader extends Entry implements StructConverter {
|
||||||
return _map;
|
return _map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
return StructConverterUtil.toDataType(ResourceHeader.class);
|
return StructConverterUtil.toDataType(ResourceHeader.class);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -100,6 +99,7 @@ public class ResourceType implements StructConverter {
|
||||||
return _referenceList;
|
return _referenceList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
String name = StructConverterUtil.parseName(ResourceType.class);
|
String name = StructConverterUtil.parseName(ResourceType.class);
|
||||||
Structure struct = new StructureDataType(name, 0);
|
Structure struct = new StructureDataType(name, 0);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -44,6 +43,7 @@ public class ObjectiveC2_Cache implements StructConverter {
|
||||||
return cache;
|
return cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
if (_state.is32bit) {
|
if (_state.is32bit) {
|
||||||
return new TypedefDataType("Cache", DWORD);
|
return new TypedefDataType("Cache", DWORD);
|
||||||
|
|
|
@ -143,6 +143,7 @@ public class ObjectiveC2_Category implements StructConverter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
buffer.append(NAME);
|
buffer.append(NAME);
|
||||||
|
|
|
@ -191,6 +191,7 @@ public class ObjectiveC2_Class implements StructConverter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
Structure struct = new StructureDataType(NAME, 0);
|
Structure struct = new StructureDataType(NAME, 0);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -161,6 +160,7 @@ public class ObjectiveC2_ClassRW implements StructConverter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
Structure struct = new StructureDataType(NAME, 0);
|
Structure struct = new StructureDataType(NAME, 0);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -68,6 +67,7 @@ public class ObjectiveC2_ImageInfo implements StructConverter {
|
||||||
return _index;
|
return _index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
Structure struct = new StructureDataType("objc_image_info", 0);
|
Structure struct = new StructureDataType("objc_image_info", 0);
|
||||||
struct.add(DWORD, "version", null);
|
struct.add(DWORD, "version", null);
|
||||||
|
|
|
@ -63,6 +63,7 @@ public class ObjectiveC2_Implementation implements StructConverter {
|
||||||
return _index;
|
return _index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
if (_isSmall) {
|
if (_isSmall) {
|
||||||
return new TypedefDataType("ImplementationOffset", DWORD);
|
return new TypedefDataType("ImplementationOffset", DWORD);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -80,6 +79,7 @@ public class ObjectiveC2_InstanceVariable implements StructConverter {
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
Structure struct = new StructureDataType("ivar_t", 0);
|
Structure struct = new StructureDataType("ivar_t", 0);
|
||||||
if (_state.is32bit) {
|
if (_state.is32bit) {
|
||||||
|
|
|
@ -74,6 +74,7 @@ public class ObjectiveC2_InstanceVariableList implements StructConverter {
|
||||||
return struct;
|
return struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
Structure struct = new StructureDataType(NAME+'_'+count+'_', 0);
|
Structure struct = new StructureDataType(NAME+'_'+count+'_', 0);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -61,6 +60,7 @@ public class ObjectiveC2_MessageReference implements StructConverter {
|
||||||
return selector;
|
return selector;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
Structure struct = new StructureDataType(NAME, 0);
|
Structure struct = new StructureDataType(NAME, 0);
|
||||||
struct.add(new PointerDataType(VOID), _state.pointerSize, "imp", null);
|
struct.add(new PointerDataType(VOID), _state.pointerSize, "imp", null);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -49,6 +48,7 @@ public class ObjectiveC2_Property implements StructConverter {
|
||||||
return attributes;
|
return attributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
Structure struct = new StructureDataType("objc_property", 0);
|
Structure struct = new StructureDataType("objc_property", 0);
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,7 @@ public class ObjectiveC2_PropertyList implements StructConverter {
|
||||||
return struct;
|
return struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
Structure struct = new StructureDataType(NAME+'_'+count+'_', 0);
|
Structure struct = new StructureDataType(NAME+'_'+count+'_', 0);
|
||||||
|
|
||||||
|
|
|
@ -181,6 +181,7 @@ public class ObjectiveC2_Protocol implements StructConverter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
Structure struct = new StructureDataType(NAME, 0);
|
Structure struct = new StructureDataType(NAME, 0);
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,7 @@ public class ObjectiveC2_ProtocolList implements StructConverter {
|
||||||
return struct;
|
return struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
Structure struct = new StructureDataType(NAME+'_'+protocols.size()+'_', 0);
|
Structure struct = new StructureDataType(NAME+'_'+protocols.size()+'_', 0);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -82,6 +81,7 @@ public class ObjectiveC1_Category implements StructConverter {
|
||||||
return unknown1;
|
return unknown1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
String name = "objc_category";
|
String name = "objc_category";
|
||||||
StructureDataType struct = new StructureDataType(name, 0);
|
StructureDataType struct = new StructureDataType(name, 0);
|
||||||
|
|
|
@ -114,6 +114,7 @@ public class ObjectiveC1_Class implements StructConverter {
|
||||||
return unknown1;
|
return unknown1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType(NAME, 0);
|
StructureDataType struct = new StructureDataType(NAME, 0);
|
||||||
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -53,6 +52,7 @@ public class ObjectiveC1_InstanceVariable implements StructConverter {
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType("objc_ivar", 0);
|
StructureDataType struct = new StructureDataType("objc_ivar", 0);
|
||||||
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
||||||
|
|
|
@ -63,6 +63,7 @@ public class ObjectiveC1_InstanceVariableList implements StructConverter {
|
||||||
return struct;
|
return struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType("objc_ivar_list"+"_"+ivar_count+"_", 0);
|
StructureDataType struct = new StructureDataType("objc_ivar_list"+"_"+ivar_count+"_", 0);
|
||||||
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -97,6 +96,7 @@ public class ObjectiveC1_MetaClass implements StructConverter {
|
||||||
return unknown1;
|
return unknown1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
String name = "objc_metaclass";
|
String name = "objc_metaclass";
|
||||||
StructureDataType struct = new StructureDataType(name, 0);
|
StructureDataType struct = new StructureDataType(name, 0);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -49,6 +48,7 @@ public class ObjectiveC1_Method extends ObjectiveC_Method {
|
||||||
return address & Conv.INT_MASK;
|
return address & Conv.INT_MASK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType("objc_method", 0);
|
StructureDataType struct = new StructureDataType("objc_method", 0);
|
||||||
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
||||||
|
|
|
@ -60,6 +60,7 @@ public class ObjectiveC1_MethodList extends ObjectiveC_MethodList {
|
||||||
return struct;
|
return struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType(NAME+"_"+method_count+"_", 0);
|
StructureDataType struct = new StructureDataType(NAME+"_"+method_count+"_", 0);
|
||||||
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -70,6 +69,7 @@ public class ObjectiveC1_Protocol implements StructConverter {
|
||||||
return classMethods;
|
return classMethods;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType(NAME, 0);
|
StructureDataType struct = new StructureDataType(NAME, 0);
|
||||||
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
||||||
|
|
|
@ -76,6 +76,7 @@ public class ObjectiveC1_ProtocolList implements StructConverter {
|
||||||
return struct;
|
return struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType(NAME+"_"+count+"_", 0);
|
StructureDataType struct = new StructureDataType(NAME+"_"+count+"_", 0);
|
||||||
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* ###
|
/* ###
|
||||||
* IP: GHIDRA
|
* IP: GHIDRA
|
||||||
* REVIEWED: YES
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -54,6 +53,7 @@ public class ObjectiveC1_ProtocolMethod implements StructConverter {
|
||||||
return _methodType;
|
return _methodType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType(NAME, 0);
|
StructureDataType struct = new StructureDataType(NAME, 0);
|
||||||
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
||||||
|
|
|
@ -64,6 +64,7 @@ public class ObjectiveC1_ProtocolMethodList implements StructConverter {
|
||||||
return struct;
|
return struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType(NAME+"_"+method_count+"_", 0);
|
StructureDataType struct = new StructureDataType(NAME+"_"+method_count+"_", 0);
|
||||||
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);
|
||||||
|
|
|
@ -182,6 +182,7 @@ public class DebugCodeViewSymbolTable implements StructConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException {
|
public DataType toDataType() throws DuplicateNameException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -162,6 +162,7 @@ public class DebugMisc implements StructConverter {
|
||||||
/**
|
/**
|
||||||
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
* @see ghidra.app.util.bin.StructConverter#toDataType()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException {
|
public DataType toDataType() throws DuplicateNameException {
|
||||||
|
|
||||||
StructureDataType struct = new StructureDataType(NAME, 0);
|
StructureDataType struct = new StructureDataType(NAME, 0);
|
||||||
|
|
|
@ -80,6 +80,7 @@ public class ResourceDataEntry implements StructConverter {
|
||||||
return reserved;
|
return reserved;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public DataType toDataType() throws DuplicateNameException, IOException {
|
public DataType toDataType() throws DuplicateNameException, IOException {
|
||||||
StructureDataType struct = new StructureDataType(NAME, 0);
|
StructureDataType struct = new StructureDataType(NAME, 0);
|
||||||
struct.add(DWORD, "OffsetToData", null);
|
struct.add(DWORD, "OffsetToData", null);
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue