kdb
[Top] [All Lists]

Invalidate registers if values are on the stack?

To: kdb@xxxxxxxxxxx
Subject: Invalidate registers if values are on the stack?
From: Martin Hicks <mort@xxxxxxx>
Date: Fri, 6 Feb 2009 12:31:33 -0600
User-agent: Mutt/1.5.17 (2007-11-01)
why does bb_start_block0_special in arch/x86/kdb/kdba_bt.c automatically
invalidate the register if the NS specifies that the contents of the
register is also on the stack?

        for (i = 0; i < r->mem_size; ++i) {
                value = r->mem[i].value;
                if (test_bit(value, r->skip_mem.bits)) {
                        /* this memory entry is not defined for this label */
                        continue;
                }
                bb_memory_set_reg_value(BBRG_RSP, r->mem[i].offset_address,
                                        value, 0);
                bb_reg_set_undef(value);
        }


mh

<Prev in Thread] Current Thread [Next in Thread>