Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/backend/gdb_expansion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export function expandValue(variableCreate: (arg: VariableObject | string, optio
ref = variableCreate(val);
val = "Object";
} else if (typeof val === "string" && val.startsWith("*0x")) {
if (extra && MINode.valueOf(extra, "arg") == "1") {
if (extra && MINode.valueOf(extra, "type") == "char **") {
ref = variableCreate(getNamespace("*(" + name), { arg: true });
Comment on lines +232 to 233

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?

val = "<args>";
} else {
Expand Down
Loading