Skip to content

Commit

Permalink
Add warn in reset_architecture if no arch found with file or debug se…
Browse files Browse the repository at this point in the history
…ssion
  • Loading branch information
ValekoZ committed Jun 2, 2024
1 parent 0d0b57a commit 797da24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -3812,6 +3812,8 @@ def reset_architecture(arch: Optional[str] = None) -> None:
raise OSError(f"CPU type is currently not supported: {gef.binary.e_machine}")
return

warn("Did not find any way to guess the correct architecture :(")


@lru_cache()
def cached_lookup_type(_type: str) -> Optional[gdb.Type]:
Expand Down

0 comments on commit 797da24

Please sign in to comment.