This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. c0939df1ce443e82c44188ff988acbb45780bfd7
- From: tromey at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 4 Jun 2014 17:22:19 -0000
- Subject: gdb and binutils branch master updated. c0939df1ce443e82c44188ff988acbb45780bfd7
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 c0939df1ce443e82c44188ff988acbb45780bfd7 (commit)
from 8eaff7cd138d8517f8c2fbc8be9b8c6eaf649bd9 (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=c0939df1ce443e82c44188ff988acbb45780bfd7
commit c0939df1ce443e82c44188ff988acbb45780bfd7
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Apr 15 09:40:57 2013 -0600
constify to_attach
This constifies the "args" argument to the target_ops to_attach
method.
I updated all instances of the method. I could not compile all of
them but I hand-inspected them. In all cases either the argument is
ignored, or it is passed to parse_pid_to_attach. (linux-nat does some
extra stuff, but that one I built...)
If you want to try it on your host of choice, please do so.
The code in parse_pid_to_attach seems a little bogus to me. If there
is a platform with a broken strtoul, we have better methods for fixing
the issue now. However, I left the code as is since it is clearly ok
to do so.
Built and regtested on x86-64 Fedora 20.
2014-06-04 Tom Tromey <tromey@redhat.com>
* procfs.c (procfs_attach): Make "args" const.
* windows-nat.c (windows_attach): Make "args" const.
* nto-procfs.c (procfs_attach): Make "args" const.
* inf-ttrace.c (inf_ttrace_attach): Make "args" const.
* go32-nat.c (go32_attach): Make "args" const.
* gnu-nat.c (gnu_attach): Make "args" const.
* darwin-nat.c (darwin_attach): Make "args" const.
* inf-ptrace.c (inf_ptrace_attach): Make "args" const.
* linux-nat.c (linux_nat_attach): Make "args" const.
* remote.c (extended_remote_attach_1, extended_remote_attach):
Make "args" const.
* target.h (struct target_ops) <to_attach>: Make "args" const.
(find_default_attach): Likewise.
* utils.c (parse_pid_to_attach): Make "args" const.
* utils.h (parse_pid_to_attach): Update.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 18 ++++++++++++++++++
gdb/darwin-nat.c | 2 +-
gdb/gnu-nat.c | 2 +-
gdb/go32-nat.c | 2 +-
gdb/inf-ptrace.c | 2 +-
gdb/inf-ttrace.c | 2 +-
gdb/linux-nat.c | 2 +-
gdb/nto-procfs.c | 2 +-
gdb/procfs.c | 4 ++--
gdb/remote.c | 5 +++--
gdb/target.h | 4 ++--
gdb/utils.c | 4 ++--
gdb/utils.h | 2 +-
gdb/windows-nat.c | 2 +-
14 files changed, 36 insertions(+), 17 deletions(-)
hooks/post-receive
--
gdb and binutils