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

WIP: Start refactoring of esil engine #23663

Merged
merged 5 commits into from
Nov 28, 2024
Merged

Conversation

condret
Copy link
Member

@condret condret commented Nov 22, 2024

  • Mark this if you consider it ready to merge
  • I've added tests (optional)
  • I wrote some lines in the book (optional)

Description


typedef struct r_esil_memory_interface_t {
void *mem;
REsilMemSwitch mem_switch;
Copy link
Collaborator

Choose a reason for hiding this comment

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

iobank thing?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, but it's optional, so you could also use something that doesn't provide banking

typedef bool (*REsilMemWrite)(void *mem, ut64 addr, const ut8 *buf, int len);

typedef struct r_esil_memory_interface_t {
void *mem;
Copy link
Collaborator

Choose a reason for hiding this comment

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

userdata?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, within r2 this would be RIO *

Copy link
Collaborator

Choose a reason for hiding this comment

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

Better user userdata instead of mem for cosistency

Copy link
Member Author

Choose a reason for hiding this comment

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

will change that later

@condret condret force-pushed the esil_diet branch 2 times, most recently from a531574 to fab7770 Compare November 23, 2024 04:21
@trufae
Copy link
Collaborator

trufae commented Nov 23, 2024

build fails because you cant use io apis from esil library, because it hasnt been built yet. you can use RIOBind instead or try to mess with the library dependency order in library/libs.mk

@condret condret force-pushed the esil_diet branch 10 times, most recently from 089700a to 948c131 Compare November 28, 2024 18:52
@condret condret merged commit f4be8ef into radareorg:master Nov 28, 2024
40 of 41 checks passed
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.

2 participants