Replace a dbg.declare when its address is replaced.
Synopsis
Description
Replaces dbg.declare record when the address it describes is replaced with a new value. If Deref is true, an additional DW_OP_deref is prepended to the expression. If Offset is non‐zero, a constant displacement is added to the expression (between the optional Deref operations). Offset can be negative.
Return Value
True if any dbg.declare records were replaced.
Parameters
Name |
Description |
Address |
Original address described by the dbg.declare. |
NewAddress |
Replacement address for the dbg.declare. |
Builder |
DIBuilder used to rewrite the declare. |
DIExprFlags |
Flags controlling expression rewriting, including Deref. |
Offset |
Constant displacement added to the expression. |
Created with MrDocs