This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Patch 2 of 2 for aarch64 ILP32 support in gdb
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Steve Ellcey <sellcey at caviumnetworks dot com>
- Cc: binutils <binutils at sourceware dot org>, gdb-patches <gdb-patches at sourceware dot org>, Yury Norov <ynorov at caviumnetworks dot com>, Andreas Schwab <schwab at suse dot de>, "Pinski, Andrew" <Andrew dot Pinski at cavium dot com>
- Date: Thu, 2 Feb 2017 09:51:54 +0000
- Subject: Re: [PATCH] Patch 2 of 2 for aarch64 ILP32 support in gdb
- Authentication-results: sourceware.org; auth=none
- References: <1485303639.29977.10.camel@caviumnetworks.com> <20170126141414.GY28060@E107787-LIN> <1485555939.2509.5.camel@caviumnetworks.com> <20170129224045.ekflcodtmfs4hv54@localhost> <1485904559.22118.17.camel@caviumnetworks.com> <CAH=s-PNyfTBiXH-hwLjnTswFLZGF46czNXqBg0TKojEojyB3Sg@mail.gmail.com> <1485995996.22118.34.camel@caviumnetworks.com>
On 17-02-01 16:39:56, Steve Ellcey wrote:
> It looks like I am having a problem with ptrace. From gdb.log:
>
> Attaching to program: /home/ubuntu/sellcey/gdb-std/obj/binutils/gdb/testsuite/outputs/gdb.base/attach/attach, process 7631
> ptrace: Operation not permitted.
Hi Steve,
This is a common ptrace attach permission issue. You can
"echo 0 > /proc/sys/kernel/yama/ptrace_scope" or modify it in some config
file /etc/sysctl.d/10-ptrace.conf (different distro may have different
path).
--
Yao (齐尧)