mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-09 14:08:03 -05:00
GP-6241: Formatting, README update, version bump
This commit is contained in:
@@ -557,6 +557,10 @@ import pdb # imports Python's pdb
|
|||||||
import pdb_ # imports Ghidra's pdb
|
import pdb_ # imports Ghidra's pdb
|
||||||
```
|
```
|
||||||
## Change History
|
## Change History
|
||||||
|
__3.0.1__
|
||||||
|
* Fixed `AttributeError: module 'pyghidra' has no attribute 'program_conext'` when performing a
|
||||||
|
`from pyghidra import *`.
|
||||||
|
|
||||||
__3.0.0:__
|
__3.0.0:__
|
||||||
* Revised the PyGhidra API. See the [API section](#api) for more details.
|
* Revised the PyGhidra API. See the [API section](#api) for more details.
|
||||||
* PyGhidra 3.0.0 requires Ghidra 12.0 or later to run.
|
* PyGhidra 3.0.0 requires Ghidra 12.0 or later to run.
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ authors = [
|
|||||||
]
|
]
|
||||||
maintainers = [
|
maintainers = [
|
||||||
{ name = "Ghidra Development Team" },
|
{ name = "Ghidra Development Team" },
|
||||||
{ name = "DC3", email = "dc3.tsd@us.af.mil" },
|
|
||||||
]
|
]
|
||||||
keywords = [
|
keywords = [
|
||||||
"ghidra",
|
"ghidra",
|
||||||
@@ -28,6 +27,7 @@ classifiers = [
|
|||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
"Programming Language :: Python :: 3.13",
|
"Programming Language :: Python :: 3.13",
|
||||||
|
"Programming Language :: Python :: 3.14",
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"Jpype1==1.5.2",
|
"Jpype1==1.5.2",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
##
|
##
|
||||||
__version__ = "3.0.0"
|
__version__ = "3.0.1"
|
||||||
|
|
||||||
# stub for documentation and typing
|
# stub for documentation and typing
|
||||||
# this is mostly to hide the function parameter
|
# this is mostly to hide the function parameter
|
||||||
@@ -32,10 +32,10 @@ def debug_callback(suspend=False, **kwargs):
|
|||||||
def _debug_callback(fun=None, *, suspend=False, **pydevd_kwargs):
|
def _debug_callback(fun=None, *, suspend=False, **pydevd_kwargs):
|
||||||
import functools
|
import functools
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if not fun:
|
if not fun:
|
||||||
return functools.partial(_debug_callback, suspend=suspend, **pydevd_kwargs)
|
return functools.partial(_debug_callback, suspend=suspend, **pydevd_kwargs)
|
||||||
|
|
||||||
@functools.wraps(fun)
|
@functools.wraps(fun)
|
||||||
def wrapper(*args, **kwargs):
|
def wrapper(*args, **kwargs):
|
||||||
# NOTE: sys.modules is used directly to prevent errors in settrace
|
# NOTE: sys.modules is used directly to prevent errors in settrace
|
||||||
@@ -46,7 +46,7 @@ def _debug_callback(fun=None, *, suspend=False, **pydevd_kwargs):
|
|||||||
pydevd_kwargs["suspend"] = suspend
|
pydevd_kwargs["suspend"] = suspend
|
||||||
pydevd.settrace(**pydevd_kwargs)
|
pydevd.settrace(**pydevd_kwargs)
|
||||||
return fun(*args, **kwargs)
|
return fun(*args, **kwargs)
|
||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
@@ -65,10 +65,10 @@ from pyghidra.version import ApplicationInfo, ExtensionDetails
|
|||||||
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"debug_callback", "get_current_interpreter", "open_program", "run_script", "ApplicationInfo",
|
"debug_callback", "get_current_interpreter", "open_program", "run_script", "ApplicationInfo",
|
||||||
"DeferredPyGhidraLauncher", "ExtensionDetails", "GuiPyGhidraLauncher",
|
"DeferredPyGhidraLauncher", "ExtensionDetails", "GuiPyGhidraLauncher",
|
||||||
"HeadlessPyGhidraLauncher", "start", "started", "open_project", "open_filesystem",
|
"HeadlessPyGhidraLauncher", "start", "started", "open_project", "open_filesystem",
|
||||||
"consume_program", "program_context", "analyze", "ghidra_script", "transaction",
|
"consume_program", "program_context", "analyze", "ghidra_script", "transaction",
|
||||||
"analysis_properties", "program_info", "program_loader", "task_monitor", "walk_project",
|
"analysis_properties", "program_info", "program_loader", "task_monitor", "walk_project",
|
||||||
"walk_programs"
|
"walk_programs"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user