-
-
Notifications
You must be signed in to change notification settings - Fork 499
Add color support to no-name symbols #4823 #5741
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
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2565,6 +2565,11 @@ static const char *core_cmd_default_table_color(const char *value, const char *c | |
| } else if (table_value_is_flags(column)) { | ||
| return ctx->pal.flag; | ||
| } else if (table_value_is_name(column)) { | ||
| RzBinSymbol *sym = rz_core_bin_get_symbol_by_name(core, value); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i would prefer to use rz_str_startswith
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I used this since we discussed for a better approach instead of direct string comparison. So it fetches the symbol and check whether is_auto_generated true. If rz_str_startswith is to be used, then initial change is good enough ig.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should I continue with this change? |
||
| if (value && sym && sym->is_auto_generated) { | ||
| return ctx->pal.diff_unknown; | ||
| } | ||
| free(sym); | ||
| return ctx->pal.fname; | ||
| } else if (table_value_is_meta(column)) { | ||
| return ctx->pal.meta; | ||
|
|
||
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 is not ok
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.
@Sl4y3r-07 RzBin should not have dependency on RzCore
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.
Yeah, I have fixed that. Thanks.
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.
But the line is still here...
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 meant I have fixed it locally, will push it with other changes.