Re: [RFA] Dwarf2 fix

Michal Ludvig
2002-05-13T17:32:31Z

Andreas Jaeger wrote:
> thanks for the explanation. I wanted to see a comment in the code...

I see :-))

static void
context_cpy (struct context *dst, struct context *src)
{
int regs_size = sizeof (struct context_reg) * NUM_REGS;
struct context_reg *dreg;

/* Save a pointer to an already allocated dst->reg
before overriding dst by src. */
dreg = dst->reg;
*dst = *src;
dst->reg = dreg;

memcpy (dst->reg, src->reg, regs_size);
}

Better now? ;-)