mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-5799: Improve example InstallCustomLibraryScript and fix NPE.
This commit is contained in:
parent
2727715539
commit
6e27a9faa2
1 changed files with 5 additions and 6 deletions
|
@ -13,8 +13,8 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import ghidra.app.plugin.core.debug.service.emulation.*;
|
import ghidra.app.plugin.core.debug.service.emulation.BytesDebuggerPcodeEmulator;
|
||||||
import ghidra.app.plugin.processors.sleigh.SleighLanguage;
|
import ghidra.app.plugin.core.debug.service.emulation.BytesDebuggerPcodeEmulatorFactory;
|
||||||
import ghidra.app.script.GhidraScript;
|
import ghidra.app.script.GhidraScript;
|
||||||
import ghidra.debug.api.emulation.DebuggerPcodeMachine;
|
import ghidra.debug.api.emulation.DebuggerPcodeMachine;
|
||||||
import ghidra.debug.api.emulation.PcodeDebuggerAccess;
|
import ghidra.debug.api.emulation.PcodeDebuggerAccess;
|
||||||
|
@ -30,8 +30,7 @@ public class InstallCustomLibraryScript extends GhidraScript implements FlatDebu
|
||||||
@Override
|
@Override
|
||||||
protected PcodeUseropLibrary<byte[]> createUseropLibrary() {
|
protected PcodeUseropLibrary<byte[]> createUseropLibrary() {
|
||||||
return super.createUseropLibrary()
|
return super.createUseropLibrary()
|
||||||
.compose(new ModelingScript.SleighStdLibPcodeUseropLibrary<>(
|
.compose(new ModelingScript.SleighStdLibPcodeUseropLibrary<>(getLanguage()));
|
||||||
(SleighLanguage) access.getLanguage()));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue