Files
ark_runtime_core/verification/debug
y00576111 a4599e5405 upload runtime_core
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I2509006818624fd3960ef645165fdb1f317d3d5e
2021-09-07 21:51:18 +08:00
..
2021-09-05 20:53:43 +08:00
2021-09-05 20:53:43 +08:00
2021-09-05 20:53:43 +08:00
2021-09-05 20:53:43 +08:00
2021-09-05 20:53:43 +08:00
2021-09-05 20:53:43 +08:00
2021-09-05 20:53:43 +08:00
2021-09-07 21:51:18 +08:00
2021-09-05 20:53:43 +08:00
2021-09-05 20:53:43 +08:00
2021-09-05 20:53:43 +08:00
2021-09-05 20:53:43 +08:00
2021-09-07 21:51:18 +08:00

Verifier debug configuration

Breakpoints for managed code

Breakpoints for managed code are used to stop GDB just right before processing instruction at specified offset in managed code.

format: <method_name>[,<offset>]*

if no offset specified, default is 0.

offset format: dec or hex (0x...)

Verifier allowlists

Allowlist for methods

List with methods full names, which will be considered as verified.

Allowlist for method calls

List of methods, calls to which always be considered as correct (signature checks is turned off for them)

Example of config

debug {
  breakpints {
    verifier {
      java.lang.System::arrayCopy, 0x55, 0x66
      java.lang.System::arrayRemove
    }
  }
  allowlist {
    verifier {
      method {
        Object::monitorEnter
        Object::monitorExit
      }
      method_call {
        Object::monitorEnter
        Object::monitorExit
      }
    }
  }
}

Note newline after last }.