hilda 2.0.3__tar.gz → 2.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. {hilda-2.0.3 → hilda-2.0.4}/PKG-INFO +1 -1
  2. {hilda-2.0.3 → hilda-2.0.4}/hilda/_version.py +2 -2
  3. {hilda-2.0.3 → hilda-2.0.4}/hilda/cli.py +3 -4
  4. {hilda-2.0.3 → hilda-2.0.4}/hilda/hilda_client.py +1 -0
  5. {hilda-2.0.3 → hilda-2.0.4}/hilda/ipython_extensions/keybindings.py +2 -1
  6. {hilda-2.0.3 → hilda-2.0.4}/hilda/launch_lldb.py +4 -5
  7. {hilda-2.0.3 → hilda-2.0.4}/hilda.egg-info/PKG-INFO +1 -1
  8. {hilda-2.0.3 → hilda-2.0.4}/.github/workflows/python-app.yml +0 -0
  9. {hilda-2.0.3 → hilda-2.0.4}/.github/workflows/python-publish.yml +0 -0
  10. {hilda-2.0.3 → hilda-2.0.4}/.gitignore +0 -0
  11. {hilda-2.0.3 → hilda-2.0.4}/.pre-commit-config.yaml +0 -0
  12. {hilda-2.0.3 → hilda-2.0.4}/LICENSE +0 -0
  13. {hilda-2.0.3 → hilda-2.0.4}/README.md +0 -0
  14. {hilda-2.0.3 → hilda-2.0.4}/gifs/.gitattributes +0 -0
  15. {hilda-2.0.3 → hilda-2.0.4}/gifs/ui.png +0 -0
  16. {hilda-2.0.3 → hilda-2.0.4}/gifs/xpc_print_message.gif +0 -0
  17. {hilda-2.0.3 → hilda-2.0.4}/hilda/__init__.py +0 -0
  18. {hilda-2.0.3 → hilda-2.0.4}/hilda/__main__.py +0 -0
  19. {hilda-2.0.3 → hilda-2.0.4}/hilda/common.py +0 -0
  20. {hilda-2.0.3 → hilda-2.0.4}/hilda/exceptions.py +0 -0
  21. {hilda-2.0.3 → hilda-2.0.4}/hilda/hilda_ascii_art.html +0 -0
  22. {hilda-2.0.3 → hilda-2.0.4}/hilda/ipython_extensions/events.py +0 -0
  23. {hilda-2.0.3 → hilda-2.0.4}/hilda/ipython_extensions/magics.py +0 -0
  24. {hilda-2.0.3 → hilda-2.0.4}/hilda/lldb_entrypoint.py +0 -0
  25. {hilda-2.0.3 → hilda-2.0.4}/hilda/lldb_importer.py +0 -0
  26. {hilda-2.0.3 → hilda-2.0.4}/hilda/objective_c/from_ns_to_json.m +0 -0
  27. {hilda-2.0.3 → hilda-2.0.4}/hilda/objective_c/get_objectivec_class_by_module.m +0 -0
  28. {hilda-2.0.3 → hilda-2.0.4}/hilda/objective_c/get_objectivec_class_description.m +0 -0
  29. {hilda-2.0.3 → hilda-2.0.4}/hilda/objective_c/get_objectivec_symbol_data.m +0 -0
  30. {hilda-2.0.3 → hilda-2.0.4}/hilda/objective_c/lsof.m +0 -0
  31. {hilda-2.0.3 → hilda-2.0.4}/hilda/objective_c/to_ns_from_json.m +0 -0
  32. {hilda-2.0.3 → hilda-2.0.4}/hilda/objective_c_class.py +0 -0
  33. {hilda-2.0.3 → hilda-2.0.4}/hilda/objective_c_symbol.py +0 -0
  34. {hilda-2.0.3 → hilda-2.0.4}/hilda/registers.py +0 -0
  35. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/__init__.py +0 -0
  36. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/boringssl.py +0 -0
  37. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/collections.py +0 -0
  38. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/dyld.py +0 -0
  39. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/fs_utils.py +0 -0
  40. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/mach/CFRunLoopServiceMachPort_hooks.py +0 -0
  41. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/mach/__init__.py +0 -0
  42. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/macho/__init__.py +0 -0
  43. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/macho/all_image_infos.py +0 -0
  44. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/macho/apple_version.py +0 -0
  45. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/macho/image_info.py +0 -0
  46. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/macho/macho.py +0 -0
  47. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/macho/macho_load_commands.py +0 -0
  48. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/remotepairingd.py +0 -0
  49. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/syslog.py +0 -0
  50. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/uuid.py +0 -0
  51. {hilda-2.0.3 → hilda-2.0.4}/hilda/snippets/xpc.py +0 -0
  52. {hilda-2.0.3 → hilda-2.0.4}/hilda/symbol.py +0 -0
  53. {hilda-2.0.3 → hilda-2.0.4}/hilda/symbols_jar.py +0 -0
  54. {hilda-2.0.3 → hilda-2.0.4}/hilda/ui/colors.json +0 -0
  55. {hilda-2.0.3 → hilda-2.0.4}/hilda/ui/ui_manager.py +0 -0
  56. {hilda-2.0.3 → hilda-2.0.4}/hilda/ui/views.py +0 -0
  57. {hilda-2.0.3 → hilda-2.0.4}/hilda.egg-info/SOURCES.txt +0 -0
  58. {hilda-2.0.3 → hilda-2.0.4}/hilda.egg-info/dependency_links.txt +0 -0
  59. {hilda-2.0.3 → hilda-2.0.4}/hilda.egg-info/entry_points.txt +0 -0
  60. {hilda-2.0.3 → hilda-2.0.4}/hilda.egg-info/requires.txt +0 -0
  61. {hilda-2.0.3 → hilda-2.0.4}/hilda.egg-info/top_level.txt +0 -0
  62. {hilda-2.0.3 → hilda-2.0.4}/pyproject.toml +0 -0
  63. {hilda-2.0.3 → hilda-2.0.4}/requirements.txt +0 -0
  64. {hilda-2.0.3 → hilda-2.0.4}/setup.cfg +0 -0
  65. {hilda-2.0.3 → hilda-2.0.4}/tests/__init__.py +0 -0
  66. {hilda-2.0.3 → hilda-2.0.4}/tests/conftest.py +0 -0
  67. {hilda-2.0.3 → hilda-2.0.4}/tests/test_hilda_client/test_from_ns.py +0 -0
  68. {hilda-2.0.3 → hilda-2.0.4}/tests/test_hilda_client/test_hilda_client.py +0 -0
  69. {hilda-2.0.3 → hilda-2.0.4}/tests/test_hilda_client/test_monitor.py +0 -0
  70. {hilda-2.0.3 → hilda-2.0.4}/tests/test_hilda_client/test_ns.py +0 -0
  71. {hilda-2.0.3 → hilda-2.0.4}/tests/test_hilda_client/test_rebind_symbols.py +0 -0
  72. {hilda-2.0.3 → hilda-2.0.4}/tests/test_hilda_client/test_registers.py +0 -0
  73. {hilda-2.0.3 → hilda-2.0.4}/tests/test_snippets/test_xpc.py +0 -0
  74. {hilda-2.0.3 → hilda-2.0.4}/tests/test_symbols/test_objective_c_class.py +0 -0
  75. {hilda-2.0.3 → hilda-2.0.4}/tests/test_symbols/test_objective_c_symbol.py +0 -0
  76. {hilda-2.0.3 → hilda-2.0.4}/tests/test_symbols/test_symbol.py +0 -0
  77. {hilda-2.0.3 → hilda-2.0.4}/tests/test_symbols/test_symbols_jar.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hilda
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: LLDB wrapped and empowered by iPython's features
5
5
  Author-email: doronz88 <doron88@gmail.com>, matan <matan1008@gmail.com>, netanel cohen <netanelc305@protonmail.com>
6
6
  Maintainer-email: doronz88 <doron88@gmail.com>, matan <matan1008@gmail.com>, netanel cohen <netanelc305@protonmail.com>
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '2.0.3'
16
- __version_tuple__ = version_tuple = (2, 0, 3)
15
+ __version__ = version = '2.0.4'
16
+ __version_tuple__ = version_tuple = (2, 0, 4)
@@ -77,16 +77,15 @@ def cli_bare() -> None:
77
77
  @click.option('--stderr', help='Redirect stderr to this file path')
78
78
  @click.option('--cwd', help='Set the working directory for the process')
79
79
  @click.option('--flags', type=click.INT, default=0, help='Launch flags (bitmask)')
80
- @click.option('--stop-at-entry', is_flag=True, help='Stop the process at the entry point')
81
80
  @startup_files_option
82
81
  def launch(exec_path: str, argv: List[str], envp: List[str], stdin: Optional[Path],
83
82
  stdout: Optional[Path], stderr: Optional[Path], cwd: Optional[Path], flags: Optional[int],
84
- stop_at_entry: Optional[bool], startup_files: List[str]) -> None:
85
- """ Attach to given process and start a lldb shell """
83
+ startup_files: List[str]) -> None:
84
+ """ Attach to a given process and start a lldb shell """
86
85
  argv = list(argv)
87
86
  envp = list(envp)
88
87
  with create_hilda_client_using_launch(
89
- exec_path, argv, envp, stdin, stdout, stderr, cwd, flags, stop_at_entry) as hilda_client:
88
+ exec_path, argv, envp, stdin, stdout, stderr, cwd, flags) as hilda_client:
90
89
  hilda_client.interact(startup_files=startup_files)
91
90
 
92
91
 
@@ -58,6 +58,7 @@ GREETING = f"""
58
58
  <b>Hilda has been successfully loaded! 😎
59
59
  Usage:
60
60
  <span style="color: magenta">p</span> Global to access all features.
61
+ <span style="color: magenta">F1</span> UI Show.
61
62
  <span style="color: magenta">F7</span> Step Into.
62
63
  <span style="color: magenta">F8</span> Step Over.
63
64
  <span style="color: magenta">F9</span> Continue.
@@ -6,7 +6,8 @@ from prompt_toolkit.keys import Keys
6
6
  def load_ipython_extension(ipython):
7
7
  def register_keybindings():
8
8
  hilda = ipython.user_ns['p']
9
- keys_mapping = {Keys.F7: hilda.step_into,
9
+ keys_mapping = {Keys.F1: hilda.ui_manager.show,
10
+ Keys.F7: hilda.step_into,
10
11
  Keys.F8: hilda.step_over,
11
12
  Keys.F9: lambda _: (hilda.log_info('Sending continue'), hilda.cont()),
12
13
  Keys.F10: lambda _: (hilda.log_info('Sending stop'), hilda.stop())}
@@ -127,13 +127,12 @@ class LLDBLaunch(LLDBListenerThread):
127
127
  def __init__(self, exec_path: str, argv: Optional[List[str]] = None, envp: Optional[List[str]] = None,
128
128
  stdin: Optional[str] = None,
129
129
  stdout: Optional[str] = None, stderr: Optional[str] = None, wd: Optional[str] = None,
130
- flags: Optional[int] = 0, stop_at_entry: Optional[bool] = False):
130
+ flags: Optional[int] = 0):
131
131
  self.exec_path = exec_path
132
132
  self.stdout = stdout
133
133
  self.stdin = stdin
134
134
  self.stderr = stderr
135
135
  self.flags = flags
136
- self.stop_at_entry = stop_at_entry
137
136
  self.argv = argv
138
137
  self.envp = envp
139
138
  self.working_directory = wd
@@ -149,7 +148,7 @@ class LLDBLaunch(LLDBListenerThread):
149
148
  logger.debug(f'Lunching process {self.exec_path}')
150
149
  return self.target.Launch(self.listener, self.argv, self.envp,
151
150
  self.stdin, self.stdout, self.stderr, self.working_directory,
152
- self.flags, self.stop_at_entry,
151
+ self.flags, True,
153
152
  self.error)
154
153
 
155
154
 
@@ -170,8 +169,8 @@ def create_hilda_client_using_remote_attach(
170
169
  def create_hilda_client_using_launch(
171
170
  exec_path: str, argv: Optional[List] = None, envp: Optional[List] = None, stdin: Optional[str] = None,
172
171
  stdout: Optional[str] = None, stderr: Optional[str] = None, wd: Optional[str] = None,
173
- flags: Optional[int] = 0, stop_at_entry: Optional[bool] = False) -> HildaClient:
174
- lldb_t = LLDBLaunch(exec_path, argv, envp, stdin, stdout, stderr, wd, flags, stop_at_entry)
172
+ flags: Optional[int] = 0) -> HildaClient:
173
+ lldb_t = LLDBLaunch(exec_path, argv, envp, stdin, stdout, stderr, wd, flags)
175
174
  lldb_t.start()
176
175
  return _get_hilda_client_from_sbdebugger(lldb_t.debugger)
177
176
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hilda
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: LLDB wrapped and empowered by iPython's features
5
5
  Author-email: doronz88 <doron88@gmail.com>, matan <matan1008@gmail.com>, netanel cohen <netanelc305@protonmail.com>
6
6
  Maintainer-email: doronz88 <doron88@gmail.com>, matan <matan1008@gmail.com>, netanel cohen <netanelc305@protonmail.com>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes