New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pwndbg: init at 2018-04-06 #38502
pwndbg: init at 2018-04-06 #38502
Conversation
cc @bennofs |
Success on aarch64-linux (full log) Attempted: pwndbg Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: pwndbg Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: pwndbg Partial log (click to expand)
|
|
||
preFixup = '' | ||
sed -i "/import sys/a import sys; sys.path.extend('$PYTHONPATH'.split(':'))" \ | ||
$out/share/pwndbg/gdbinit.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FRidh if there is a more appropriate method to inject PYTHONPATH in a non-script, let me know.
cc @maloi |
''; | ||
|
||
preFixup = '' | ||
sed -i "/import sys/a import sys; sys.path.insert(0, '$PYTHONPATH'.split(':'))" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This insert
looks wrong, since insert
takes a single element to insert (not a list of elements). sys.path[0:0] = '$PYTHONPATH'.split(':')
should do what we want though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The weird thing seems, that it seems not to make a difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, it doesn't work with the insert. Maybe you have the packages already installed in your global python env? I'll push the fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe, I should probably remove pwntools again.
Success on x86_64-linux (full log) Attempted: pwndbg Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: pwndbg Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: pwndbg Partial log (click to expand)
|
Motivation for this change
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)