Skip to content

Update gdb_expansion.ts#464

Open
xiaoyun94 wants to merge 1 commit into
WebFreak001:masterfrom
xiaoyun94:args_problem
Open

Update gdb_expansion.ts#464
xiaoyun94 wants to merge 1 commit into
WebFreak001:masterfrom
xiaoyun94:args_problem

Conversation

@xiaoyun94

Copy link
Copy Markdown

Resolved the issue that the input parameter value of a function cannot be displayed when the structure pointer is used as the input parameter of the function.

Resolved the issue that the input parameter value of a function cannot be displayed when the structure pointer is used as the input parameter of the function.
@xiaoyun94

xiaoyun94 commented Jul 20, 2026

Copy link
Copy Markdown
Author

Before:
Image

Now:
image

Comment on lines +232 to 233
if (extra && MINode.valueOf(extra, "type") == "char **") {
ref = variableCreate(getNamespace("*(" + name), { arg: true });

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the previous version checked if it is an arg - and showed it that way + got the content, now that is always done if the type is a char **...

Do we need to split that (haven't checked what arg:true does)?

Also: is it possible to add a testcase for that to ensure a follow-up commit does not break it?

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