aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-linux-nat.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-08-23 23:17:12 +0100
committerPedro Alves <palves@redhat.com>2016-08-23 23:18:01 +0100
commit53e8498437380263d5321bf841c6de526e676347 (patch)
treef3de88d2442068e577c8d41b0f62e4eb6812673f /gdb/arm-linux-nat.c
parent69389fd9fba29ab078f63d366612028fd1de25ab (diff)
downloadgdb-53e8498437380263d5321bf841c6de526e676347.zip
gdb-53e8498437380263d5321bf841c6de526e676347.tar.gz
gdb-53e8498437380263d5321bf841c6de526e676347.tar.bz2
x32: Avoid unsigned long when installing fast tracepoint jump pads
We're casting through unsigned long to write a 64-bit immediate operand of movabs (the comment said movl, but that was incorrect). The problem is that unsigned long is 32-bit on x32, so we were writing fewer bytes than necessary. Fix this by using an 8 byte memcpy like in other similar places in the function. gdb/gdbserver/ChangeLog: 2016-08-23 Pedro Alves <palves@redhat.com> * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix comment. Use memcpy instead of casting through unsigned long.
Diffstat (limited to 'gdb/arm-linux-nat.c')
0 files changed, 0 insertions, 0 deletions