这是indexloc提供的服务,不要输入任何密码
Skip to content

Remove the limit on this calls from a single version allowing user defined ones to work as the inbuilt version #8636

@Wall-AF

Description

@Wall-AF

PrototypeModel thisConv = program.getCompilerSpec().getCallingConvention(CompilerSpec.CALLING_CONVENTION_thiscall);
if (conv != thisConv) {

This limits the code to just a single "this" calling convention!

Although imperfect, an alternative solution would be to use the below test both here and elsewhere in the codebase:
if (conv.getName().startsWith(CompilerSpec.CALLING_CONVENTION_thiscall)) {

Users could then add alternatives that Ghidra could work with. (Obviously those alternatives must use a name starting with the constant!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions