Skip to content

Commit

Permalink
cg: fix support for REF-types in dt_cg_store_val()
Browse files Browse the repository at this point in the history
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Nick Alcock <nick.alcock@oracle.com>
  • Loading branch information
kvanhees committed Feb 27, 2023
1 parent b6aa276 commit 26fbab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdtrace/dt_cg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ dt_cg_store_val(dt_pcb_t *pcb, dt_node_t *dnp, dtrace_actkind_t kind,
}

/* Handle tracing of by-ref values (arrays, struct, union). */
if (kind == DTRACEACT_DIFEXPR && (arg & DT_NF_REF)) {
if ((dnp->dn_flags & DT_NF_REF) || (arg & DT_NF_REF)) {
off = dt_rec_add(dtp, dt_cg_fill_gap, kind, size, 2, pfp, arg);

TRACE_REGSET("store_val(): Begin ");
Expand Down

0 comments on commit 26fbab1

Please sign in to comment.