Skip to content

Commit

Permalink
all good
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy authored Apr 23, 2024
1 parent 2ed19a7 commit 0d773f0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ jobs:
run: |
make -C tests/binaries -j ${{ env.NB_CPU }}
- run: curl -sSf https://sshx.io/get | sh -s run

- name: Run Tests
run: |
python${{ env.PY_VER }} -m pytest --forked -n ${{ env.NB_CPU }} -v -m "not benchmark" tests/
Expand Down
2 changes: 1 addition & 1 deletion scripts/capstone.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def do_invoke(self, _: List[str], **kwargs: Any) -> None:
args = kwargs["arguments"]
show_opcodes = args.show_opcodes
length = args.length or gef.config["context.nb_lines_code"]
location = parse_address(args.location)
location = int(gdb.parse_and_eval(args.location).address)
if not location:
info(f"Can't find address for {args.location}")
return
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/capstone_disassemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_cmd_capstone_disassemble(self):
self.assertTrue(int(opcode, 16))
self.assertTrue(symbol.startswith("<") and symbol.endswith(">"))

cmd = "cs --show-opcodes main"
cmd = "cs --show-opcodes"
res = gdb.execute(cmd, to_string=True) or ""
assert res
self.assertGreater(len(res.splitlines()), 1)

0 comments on commit 0d773f0

Please sign in to comment.