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

Simplify how nb_argument is calculated in print_guessed_arguments #755

Merged
merged 1 commit into from
Dec 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -8689,12 +8689,10 @@ def __get_current_block_start_address():
pass

if not nb_argument:
if not parameter_set:
nb_argument = 0
elif is_x86_32():
if is_x86_32():
nb_argument = len(parameter_set)
else:
nb_argument = max(function_parameters.index(p)+1 for p in parameter_set)
nb_argument = max([function_parameters.index(p)+1 for p in parameter_set], default=0)
hugsy marked this conversation as resolved.
Show resolved Hide resolved

args = []
for i in range(nb_argument):
Expand Down