mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Add some initialisations that seemed to be required as a result of an LTO build with a gcc 8 prerelease.
This commit is contained in:
parent
f008d35bb3
commit
5b7b6662f2
@ -542,9 +542,12 @@ void dump_one_thread(struct note **notelist, const vki_siginfo_t *si, ThreadId t
|
||||
{
|
||||
vki_elf_fpregset_t fpu;
|
||||
struct vki_elf_prstatus prstatus;
|
||||
VG_(memset)(&fpu, 0, sizeof(fpu));
|
||||
VG_(memset)(&prstatus, 0, sizeof(prstatus));
|
||||
# if defined(VGP_x86_linux) && !defined(VGPV_x86_linux_android)
|
||||
{
|
||||
vki_elf_fpxregset_t xfpu;
|
||||
VG_(memset)(&xfpu, 0, sizeof(xfpu));
|
||||
fill_xfpu(&VG_(threads)[tid], &xfpu);
|
||||
add_note(notelist, "LINUX", NT_PRXFPREG, &xfpu, sizeof(xfpu));
|
||||
}
|
||||
|
||||
@ -1185,8 +1185,10 @@ void VG_(redir_notify_delete_DebugInfo)( const DebugInfo* delsi )
|
||||
Addr VG_(redir_do_lookup) ( Addr orig, Bool* isWrap )
|
||||
{
|
||||
Active* r = VG_(OSetGen_Lookup)(activeSet, &orig);
|
||||
if (r == NULL)
|
||||
if (r == NULL) {
|
||||
if (isWrap) *isWrap = False;
|
||||
return orig;
|
||||
}
|
||||
|
||||
vg_assert(r->to_addr != 0);
|
||||
if (isWrap)
|
||||
|
||||
@ -159,7 +159,10 @@ void drd_report_data_race(const Error* const err,
|
||||
const HChar* const auxwhat_prefix = xml ? " <auxwhat>" : "";
|
||||
const HChar* const auxwhat_suffix = xml ? "</auxwhat>" : "";
|
||||
const HChar* const indent = xml ? " " : "";
|
||||
|
||||
AddrInfo ai;
|
||||
VG_(memset)(&ai, 0, sizeof(ai));
|
||||
ai.akind = eUnknown; // A safe initial value (?)
|
||||
|
||||
DiEpoch cur_ep = VG_(current_DiEpoch)();
|
||||
XArray* /* of HChar */ descr1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user