Skip to content

PyGhidra: Constructing a Program #7343

Answered by ryanmkurtz
bdemick asked this question in Q&A
Discussion options

You must be logged in to vote

How about just

proj = GhidraProject.createProject(proj_location, "testproject", False)
root_folder = proj.getRootFolder();
language = DefaultLanguageService.getLanguageService().getLanguage(LanguageID("x86:LE:64:default"))
spec = language.getDefaultCompilerSpec()
consumer = Object()
program = ProgramDB("test_program", language, spec, consumer);
program.setEventsEnabled(False)
tid = program.startTransaction("Starting memory block creation")

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ryanmkurtz
Comment options

Comment options

You must be logged in to vote
1 reply
@bdemick
Comment options

Answer selected by bdemick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants