(r4970).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4971
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 );
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;
#include "pub_core_syscall.h"
#include "pub_core_syswrap.h"
#include "pub_core_tooliface.h"
+#include "pub_core_coredump.h"
#include "vki_unistd.h"
VG_(start_debugger)( tid );
}
- // See comment above about this temporary disabling of core dumps.
if (core) {
const static struct vki_rlimit zero = { 0, 0 };