aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-x86-low.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-04-03 23:14:18 +0000
committerPedro Alves <palves@redhat.com>2010-04-03 23:14:18 +0000
commitfc7238bbbae178f1c552e943d68e08f99d642274 (patch)
treec3aede94f1e54cd35ee5596c62ff5657c6862aa7 /gdb/gdbserver/linux-x86-low.c
parent1eed4def45f5030af73bcc8342927f7bf34be9b1 (diff)
downloadbinutils-fc7238bbbae178f1c552e943d68e08f99d642274.zip
binutils-fc7238bbbae178f1c552e943d68e08f99d642274.tar.gz
binutils-fc7238bbbae178f1c552e943d68e08f99d642274.tar.bz2
* inferiors.c (add_thread): Set last_status kind to
TARGET_WAITKIND_IGNORE. * linux-low.c (cancel_breakpoint): Remove unnecessary regcache fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls. (linux_wait_1): Move `thread' local definition to block that uses it. Don't NULL initialize `event_child'. (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls. Alway set the thread's last_status to TARGET_WAITKIND_IGNORE. * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
Diffstat (limited to 'gdb/gdbserver/linux-x86-low.c')
-rw-r--r--gdb/gdbserver/linux-x86-low.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c
index 1f9e1b1..37fe60f 100644
--- a/gdb/gdbserver/linux-x86-low.c
+++ b/gdb/gdbserver/linux-x86-low.c
@@ -325,7 +325,7 @@ x86_breakpoint_at (CORE_ADDR pc)
{
unsigned char c;
- read_inferior_memory (pc, &c, 1);
+ (*the_target->read_memory) (pc, &c, 1);
if (c == 0xCC)
return 1;