Skip to content
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

ARM and PPC Support #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

ARM and PPC Support #32

wants to merge 2 commits into from

Conversation

zachriggle
Copy link
Contributor

Added registers for ARM and PPC, in addition to breaking some other functionality (EFLAGS, bufferizing) which weren't playing nicely.

This was mostly just a hack for Boston Key Party, but I feel like sharing back.

The buffering seems to cause PEDA output to be completely silenced. Some combination of removing the bufferize annotations, and killing its functionality fix this. This is on a Debian Wheezy version of GDB, as well as a custom-compiled bleeding edge version (since Ubuntu ship with a python3 version, I had to build my own).

I did't investigate why the EFLAGS code causes the context command to break, I just nuked it since things worked afterward.

Note that I have not tested any of the functionality of PEDA on ARM or PPC outside of the context commands.

@zachriggle zachriggle changed the title Arm ppc ARM and PPC Support Jul 4, 2014
@@ -4679,6 +4674,8 @@ def eflags(self, *arg):
MYNAME
MYNAME [set|clear] flagname
"""
return ""
Copy link

@anthraxx anthraxx Jun 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does the eflags function now always return nothing, was this a mistake?

EDIT: Sry, just now noticed the mentioned comment on the EFLAGS, however this needs investigation before being considered for merging. Can look into this at the weekend

@anthraxx anthraxx mentioned this pull request Jun 1, 2016
@jdek
Copy link

jdek commented Nov 20, 2016

@anthraxx did you get a chance to look at this? Stumbled across this when trying to use PEDA with ARM (and the registers didn't show up)

@anthraxx
Copy link

@joshdekock no sorry, to be honest i have abandoned using peda and switched to something more modern and active

@jdek
Copy link

jdek commented Nov 20, 2016

@anthraxx what did you switch to?

@anthraxx
Copy link

@joshdekock pwndbg 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants