-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add port
, gdb_args
, and gdbserver_args
to gdb.debug()
#2382
Merged
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
94b7a8f
added two arguments to gdb.debug:
2b26055
added changelog entry and fixed python2.7 compatibility
78df190
also added optional gdbserver_args parameter to gdb.debug()
66f47a9
Merge branch 'Gallopsled:dev' into dev
gfelber 7305502
implemented requested fixes for #2382:
gfelber 0ee8d36
implemented requested fixes for #2382:
gfelber ac816c4
Merge branch 'dev' into dev
gfelber 2248751
Merge branch 'dev' into dev
peace-maker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It would be better to add the tests instead of this vague warning. I think we can copy the API tests and slap a
ssh=shell
argument to the.debug
call.See here for instructions on how to test locally.
make -C travis/docker ANDROID=no TARGET=gdb.rst
should do the job.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.
Ah, lol. gdb tests are disabled in the docker testing setup apparently. CI will do the work then.
pwntools/travis/docker/doctest3
Lines 27 to 29 in 51e8eb0
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.
I just tried running the gdb tests in docker and they all passed, so I guess we can just remove that line from doctest3 and include them.
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.
0ee8d36 so i added some test cases (the same as non ssh) and i was wondering how this test case is supposed to work (IMO it doesn't make sense for gdb.attach to work on remote targets and the test case doesn't work for me).
this is the error i get
i also added some timeouts to the other recvline commands for the tests