static void add_mapping_callback(Addr addr, SizeT len, UInt prot,
ULong dev, ULong ino, Off64T offset,
- const HChar *filename)
+ const HChar *filename, Bool ignore_offset)
{
// derived from sync_check_mapping_callback()
#define CALL_PRE(name) PRE_FN(name)(tid, layout, arrghs, status, flags)
#define CALL_POST(name) POST_FN(name)(tid, arrghs, status)
-#if VG_WORDSIZE == 4
-// Combine two 32-bit values into a 64-bit value
-// Always use with low-numbered arg first (e.g. LOHI64(ARG1,ARG2) )
-# if defined(VGA_x86)
-# define LOHI64(lo,hi) ( ((ULong)(UInt)(lo)) | (((ULong)(UInt)(hi)) << 32) )
-# else
-# error unknown architecture
-# endif
-#endif
-
// Retrieve the current Mach thread
#define MACH_THREAD ((Addr)VG_(get_ThreadState)(tid)->os_state.lwpid)
gettimeofday(&dbgtv, NULL);
ts_tm = localtime(&dbgtv.tv_sec);
ptr = out + strftime(out, sizeof(out), "%H:%M:%S", ts_tm);
- sprintf(ptr, ".%6.6ld ", dbgtv.tv_usec);
+ sprintf(ptr, ".%6.6ld ", (long)dbgtv.tv_usec);
} else {
out[0] = 0;
}