UInt nbytes, i;
VgLdtEntry* ldt;
- if (VG_(clo_verbosity) > 1)
+ if (0)
VG_(printf)("allocate_LDT_for_thread: parent = %p\n", parent_ldt );
vg_assert(VG_LDT_ENTRY_SIZE == sizeof(VgLdtEntry));
nbytes = VG_M_LDT_ENTRIES * VG_LDT_ENTRY_SIZE;
/* Free an LDT created by the above function. */
void VG_(deallocate_LDT_for_thread) ( VgLdtEntry* ldt )
{
- if (VG_(clo_verbosity) > 1)
+ if (0)
VG_(printf)("deallocate_LDT_for_thread: ldt = %p\n", ldt );
if (ldt != NULL)
VG_(arena_free)(VG_AR_CORE, ldt);
UInt limit;
VgLdtEntry* the_ldt;
- VG_(printf)("do_useseg: seg_selector = %p, vaddr = %p\n",
- seg_selector, virtual_addr);
+ if (0)
+ VG_(printf)("do_useseg: seg_selector = %p, vaddr = %p\n",
+ seg_selector, virtual_addr);
seg_selector &= 0x0000FFFF;
if (the_ldt == NULL) {
base = 0;
limit = 0;
- VG_(printf)("warning! thread has no LDT! this is really bad.\n");
+ VG_(message)(
+ Vg_UserMsg,
+ "Warning: segment-override prefix encountered, but thread has no LDT"
+ );
} else {
base = (Addr)wine_ldt_get_base ( &the_ldt[seg_selector] );
limit = (UInt)wine_ldt_get_limit ( &the_ldt[seg_selector] );
}
if (virtual_addr >= limit) {
- VG_(printf)("FATAL: do_useseg: vaddr %d exceeds segment limit %d\n",
- virtual_addr, limit );
+ VG_(message)(
+ Vg_UserMsg,
+ "Warning: segment access: virtual addr %d exceeds segment limit of %d",
+ virtual_addr, limit
+ );
}
return base + virtual_addr;
UInt i, size;
Char* ldt;
- if (VG_(clo_verbosity) > 1)
+ if (0)
VG_(printf)("read_ldt: tid = %d, ptr = %p, bytecount = %d\n",
tid, ptr, bytecount );
VgLdtEntry* ldt;
struct vki_modify_ldt_ldt_s* ldt_info;
- if (VG_(clo_verbosity) > 1)
+ if (0)
VG_(printf)("write_ldt: tid = %d, ptr = %p, "
"bytecount = %d, oldmode = %d\n",
tid, ptr, bytecount, oldmode );