DB_SEG_PROT
assert(DB_SEG_PROT(hdp, i) == 0);
DB_SEG_PROT(hdp, i) = 0;
if (DB_SEG_PROT(hdp, seg) != prot) {
seg, idx, DB_SEG_PROT(hdp, seg), prot);
DB_SEG_PROT(hdp, seg) = prot;