Package ghidra.app.util.bin.format.golang

# Class GoRegisterInfoManager

java.lang.Object
ghidra.app.util.bin.format.golang.GoRegisterInfoManager

public class GoRegisterInfoManager extends Object
XML config file format:

            <golang>
                    <register_info versions="-1.2,1.3.3-1.4.2,1.8-"> // or "all"
                            <int_registers list="RAX,RBX,RCX,RDI,RSI,R8,R9,R10,R11"/>
                            <float_registers list="XMM0,XMM1,XMM2,XMM3,XMM4,XMM5,XMM6,XMM7,XMM8,XMM9,XMM10,XMM11,XMM12,XMM13,XMM14"/>
                            <stack initialoffset="8" maxalign="8"/>
                            <current_goroutine register="R14"/>
                            <zero_register register="XMM15" builtin="true|false"/>
                            <duffzero dest="RDI" zero_arg="XMM0" zero_type="float|int"/>
                            <closurecontext register="RDX" />
                    </register_info>
                    <register_info versions="1.2">
                            ...
                    </register_info>
            </golang>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GoRegisterInfoManager()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static GoRegisterInfoManager`
  `getInstance()`
  `GoRegisterInfo`
  `getRegisterInfoForLang(Language lang, GoVer goVer)`
  Returns a `GoRegisterInfo` instance for the specified `Language`.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GoRegisterInfoManager

    public GoRegisterInfoManager()

- ## Method Details

  - ### getInstance

    public static GoRegisterInfoManager getInstance()

  - ### getRegisterInfoForLang

    public GoRegisterInfo getRegisterInfoForLang(Language lang, GoVer goVer)
    Returns a `GoRegisterInfo` instance for the specified `Language`.

    If the language didn't define Go register info, a generic/empty instance will be returned that forces all parameters to be stack allocated.

    Parameters:
      `lang` - `Language`
      `goVer` - `GoVer`
    Returns:
      `GoRegisterInfo`, never null