mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Fix a couple of gcc warnings following recent coredumping changes
(r4970). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4971
This commit is contained in:
parent
48f8c22e44
commit
609c8167f9
@ -2523,9 +2523,9 @@ SysRes VG_(am_mmap_file_float_valgrind) ( SizeT length, UInt prot,
|
||||
seg.hasW = toBool(prot & VKI_PROT_WRITE);
|
||||
seg.hasX = toBool(prot & VKI_PROT_EXEC);
|
||||
if (get_inode_for_fd(fd, &dev, &ino, &mode)) {
|
||||
seg.dev = dev;
|
||||
seg.ino = ino;
|
||||
seg.mode - mode;
|
||||
seg.dev = dev;
|
||||
seg.ino = ino;
|
||||
seg.mode = mode;
|
||||
}
|
||||
if (get_name_for_fd(fd, buf, VKI_PATH_MAX)) {
|
||||
seg.fnIdx = allocate_segname( buf );
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
void ML_(fill_elfregs_from_tst)(struct vki_user_regs_struct* regs,
|
||||
const ThreadArchState* arch)
|
||||
{
|
||||
regs->eflags = LibVEX_GuestX86_get_eflags(&arch->vex);
|
||||
regs->eflags = LibVEX_GuestX86_get_eflags( &((ThreadArchState*)arch)->vex );
|
||||
regs->esp = arch->vex.guest_ESP;
|
||||
regs->eip = arch->vex.guest_EIP;
|
||||
|
||||
|
||||
@ -102,6 +102,7 @@
|
||||
#include "pub_core_syscall.h"
|
||||
#include "pub_core_syswrap.h"
|
||||
#include "pub_core_tooliface.h"
|
||||
#include "pub_core_coredump.h"
|
||||
#include "vki_unistd.h"
|
||||
|
||||
|
||||
@ -1067,7 +1068,6 @@ static void default_action(const vki_siginfo_t *info, ThreadId tid)
|
||||
VG_(start_debugger)( tid );
|
||||
}
|
||||
|
||||
// See comment above about this temporary disabling of core dumps.
|
||||
if (core) {
|
||||
const static struct vki_rlimit zero = { 0, 0 };
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user