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:
Julian Seward 2005-11-01 00:03:40 +00:00
parent 48f8c22e44
commit 609c8167f9
3 changed files with 5 additions and 5 deletions

View File

@ -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 );

View File

@ -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;

View File

@ -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 };