This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. ac740bc7a9103a561329ebf7aa05ff31bcab2267
- From: macro at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 3 Sep 2014 21:11:11 -0000
- Subject: gdb and binutils branch master updated. ac740bc7a9103a561329ebf7aa05ff31bcab2267
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via ac740bc7a9103a561329ebf7aa05ff31bcab2267 (commit)
from 7d793aa9f0986828d5dde8f3811a7adafc38b6b4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ac740bc7a9103a561329ebf7aa05ff31bcab2267
commit ac740bc7a9103a561329ebf7aa05ff31bcab2267
Author: James Hogan <james.hogan@imgtec.com>
Date: Mon Sep 1 22:48:40 2014 +0100
Reset errno before PTRACE_PEEKUSER for MIPS DSP_CONTROL
PTRACE_PEEKUSER can return -1, which is usually used to determine whether
a system call has reported an error, so errno must be used alone to
determine whether an error occurred. However errno isn't modified by a
successful system call so it must be reset to a known value (0) before the
syscall call.
Add the missing errno reset when reading the DSP_CONTROL register in the
native MIPS Linux backend and the MIPS gdbserver backend.
gdb/:
* mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
gdb/gdbserver/:
* linux-mips-low.c (mips_read_description): Reset errno to 0 prior
to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 5 +++++
gdb/gdbserver/ChangeLog | 5 +++++
gdb/gdbserver/linux-mips-low.c | 1 +
gdb/mips-linux-nat.c | 1 +
4 files changed, 12 insertions(+), 0 deletions(-)
hooks/post-receive
--
gdb and binutils