Skip to content

Commit 824d67d

Browse files
authored
gdb: fix pid attach (#2474)
1 parent 5c1fb1d commit 824d67d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pwnlib/gdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ def findexe():
11731173
cmd += [exe]
11741174

11751175
if pid and not context.os == 'android':
1176-
cmd += [str(pid)]
1176+
cmd += ['-p', str(pid)]
11771177

11781178
if context.os == 'android' and pid:
11791179
runner = _get_runner()

0 commit comments

Comments
 (0)