Fixes for release 2025.01 (#1164)

## Description

Minor fixes for the 2025.01 release

---------

Signed-off-by: hugsy <[email protected]>
This commit is contained in:
crazy hugsy
2025-01-12 06:49:07 -08:00
committed by GitHub
parent 538c7c6fde
commit ed10244b0f
4 changed files with 15 additions and 13 deletions
+9 -7
View File
@@ -1,4 +1,4 @@
name: CI Coverage for PR
name: Coverage
on:
pull_request_target:
@@ -14,16 +14,18 @@ jobs:
coverage:
env:
PY_VER: ''
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
run: |
sudo apt-get -qq update
sudo apt-get -qq install -y gdb-multiarch python3-dev python3-pip python3-wheel python3-setuptools git cmake gcc g++ pkg-config libglib2.0-dev gdbserver qemu-user curl
sudo python3 -m pip install --upgrade pip --quiet
- name: Run test coverage
export NEEDRESTART_MODE=n
sudo apt-get update -qq
sudo apt-get install -qq -y gdb-multiarch python3-dev python3-pip python3-wheel python3-setuptools git cmake gcc g++ pkg-config libglib2.0-dev gdbserver qemu-user curl
sudo apt-get install -y python3-full
- name: Run coverage
id: get_coverage
env:
ALLOWED_MARGIN: 0.01
@@ -41,7 +43,7 @@ jobs:
echo "current_score=${current_score}" >> $GITHUB_OUTPUT
echo "score_diff=${score_diff}" >> $GITHUB_OUTPUT
- name: Post comment
- name: Post results
uses: actions/github-script@v7
with:
script: |
+1 -1
View File
@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2013-2024 crazy rabbidz
Copyright (c) 2013-2025 crazy rabbidz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -75,7 +75,7 @@ try to reach out for help on the Discord channel or submit an issue.
| Documentation |License | Compatibility | CI Tests (`main`) |
|:---:|:---:|:---|--|
| [![Documentation](https://github.com/hugsy/gef/actions/workflows/generate-docs.yml/badge.svg)](https://github.com/hugsy/gef/actions/workflows/generate-docs.yml) | [![MIT](https://img.shields.io/packagist/l/doctrine/orm.svg?maxAge=2592000?style=plastic)](https://github.com/hugsy/gef/blob/main/LICENSE) | [![Python 3](https://img.shields.io/badge/Python-3-green.svg)](https://github.com/hugsy/gef/) | [![CI Test for GEF](https://github.com/hugsy/gef/actions/workflows/run-tests.yml/badge.svg)](https://github.com/hugsy/gef/actions/workflows/run-tests.yml) |
| [![Documentation](https://github.com/hugsy/gef/actions/workflows/generate-docs.yml/badge.svg)](https://github.com/hugsy/gef/actions/workflows/generate-docs.yml) | [![MIT](https://img.shields.io/packagist/l/doctrine/orm.svg?maxAge=2592000?style=plastic)](https://github.com/hugsy/gef/blob/main/LICENSE) | [![Python 3](https://img.shields.io/badge/Python-3-green.svg)](https://github.com/hugsy/gef/) | [![CI Test for GEF](https://github.com/hugsy/gef/actions/workflows/tests.yml/badge.svg)](https://github.com/hugsy/gef/actions/workflows/tests.yml) |
## Contribute
+4 -4
View File
@@ -3703,7 +3703,7 @@ def new_objfile_handler(evt: "gdb.NewObjFileEvent | None") -> None:
if evt:
path = evt.new_objfile.filename or ""
elif progspace:
path = progspace.filename
path = progspace.filename or ""
else:
raise RuntimeError("Cannot determine file path")
try:
@@ -4901,7 +4901,7 @@ class VersionCommand(GenericCommand):
try:
git = which("git")
except:
except FileNotFoundError:
git = None
if git:
@@ -11403,7 +11403,7 @@ class GefSessionManager(GefManager):
return self.remote.file
progspace = gdb.current_progspace()
assert progspace
fpath: str = progspace.filename
fpath: str = progspace.filename or ""
if fpath and not self._file:
self._file = pathlib.Path(fpath).expanduser()
return self._file
@@ -11547,7 +11547,7 @@ class GefRemoteSessionManager(GefSessionManager):
if not filename:
raise RuntimeError("No session started")
start_idx = len("target:") if filename.startswith("target:") else 0
self._file = pathlib.Path(progspace.filename[start_idx:])
self._file = pathlib.Path(filename[start_idx:])
return self._file
@property