Skip to content

Commit

Permalink
Fix sleigh-lift
Browse files Browse the repository at this point in the history
  • Loading branch information
ekilmer committed Mar 4, 2024
1 parent c639ac4 commit d2726ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ jobs:
cmake --install build --config ${{ matrix.build_type }} --prefix install
./install/bin/sleigh-lift --version
./install/bin/sleigh-lift disassemble x86-64.sla 4881ecc00f0000
./install/bin/sleigh-lift pcode x86-64.sla 4881ecc00f0000
- name: Create the packages
run: cmake
Expand Down
3 changes: 2 additions & 1 deletion extra-tools/sleigh-lift/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ int main(int argc, char *argv[]) {
ghidra::ContextInternal ctx;
ghidra::Sleigh engine(&load_image, &ctx);
ghidra::DocumentStorage storage;
std::istringstream sla("<sleigh>" + sla_file_path->string() + "</sleigh>");
ghidra::Element *root =
storage.openDocument(sla_file_path->string())->getRoot();
storage.parseDocument(sla)->getRoot();
storage.registerTag(root);
std::optional<std::filesystem::path> pspec_file_path;
if (args->pspec_file_name) {
Expand Down

0 comments on commit d2726ad

Please sign in to comment.