Skip to content

Commit 5c1fb1d

Browse files
authored
Fix: GDB 15.1 rpyc detection (#2469)
* Fix: GDB 15 rpyc detection * Update CHANGELOG.md * Changelog on the right version * Remove extra newline in CHANGELOG.md
1 parent 7c79c73 commit 5c1fb1d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,12 @@ The table below shows which release corresponds to each branch, and what date th
124124
- [#2466][2466] Fix PLT emulation with Unicorn 2.1.0
125125
- [#2466][2466] Switch to PyPi Simple API for update checks
126126
- [#2467][2467] Fix loading at all on Windows
127+
- [#2469][2469] GDB 15+ rpyc detection
127128

128129
[2445]: https://github.com/Gallopsled/pwntools/pull/2445
129130
[2466]: https://github.com/Gallopsled/pwntools/pull/2466
130131
[2467]: https://github.com/Gallopsled/pwntools/pull/2467
132+
[2469]: https://github.com/Gallopsled/pwntools/pull/2469
131133

132134
## 4.13.0 (`stable`)
133135

pwnlib/gdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ def preexec_fn():
12451245
else:
12461246
# Check to see if RPyC is installed at all in GDB
12471247
rpyc_check = [gdb_binary, '--nx', '-batch', '-ex',
1248-
'python import rpyc; import sys; sys.exit(123)']
1248+
'python import rpyc; import gdb; gdb.execute("quit 123")']
12491249

12501250
if 123 != tubes.process.process(rpyc_check).poll(block=True):
12511251
log.error('Failed to connect to GDB: rpyc is not installed')

0 commit comments

Comments
 (0)