mirror of
https://github.com/hugsy/gef.git
synced 2026-10-11 21:49:56 +00:00
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:
@@ -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,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
|
||||
|
||||
@@ -75,7 +75,7 @@ try to reach out for help on the Discord channel or submit an issue.
|
||||
|
||||
| Documentation |License | Compatibility | CI Tests (`main`) |
|
||||
|:---:|:---:|:---|--|
|
||||
| [](https://github.com/hugsy/gef/actions/workflows/generate-docs.yml) | [](https://github.com/hugsy/gef/blob/main/LICENSE) | [](https://github.com/hugsy/gef/) | [](https://github.com/hugsy/gef/actions/workflows/run-tests.yml) |
|
||||
| [](https://github.com/hugsy/gef/actions/workflows/generate-docs.yml) | [](https://github.com/hugsy/gef/blob/main/LICENSE) | [](https://github.com/hugsy/gef/) | [](https://github.com/hugsy/gef/actions/workflows/tests.yml) |
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user