X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fi386-linux-nat.c;h=146f5a65133c3437530f91c1308bba5789b8a913;hb=5c9fe2e8d901e70b35f3bec4f2221ea5f9d63473;hp=4059926a2329946bfd5be6da8120f9579ebaf432;hpb=9b254dd1ce46c19dde1dde5b8d1e22e862dfacce;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index 4059926a23..146f5a6513 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -770,7 +770,7 @@ i386_linux_resume (ptid_t ptid, int step, enum target_signal signal) that's about to be restored, and set the trace flag there. */ /* First check if PC is at a system call. */ - if (read_memory_nobpt (pc, buf, LINUX_SYSCALL_LEN) == 0 + if (target_read_memory (pc, buf, LINUX_SYSCALL_LEN) == 0 && memcmp (buf, linux_syscall, LINUX_SYSCALL_LEN) == 0) { ULONGEST syscall; @@ -820,6 +820,8 @@ _initialize_i386_linux_nat (void) /* Fill in the generic GNU/Linux methods. */ t = linux_target (); + i386_use_watchpoints (t); + /* Override the default ptrace resume method. */ t->to_resume = i386_linux_resume;