From: Daniel Jacobowitz <drow@false.org>
To: Francesco Bradascio <fbradasc@yahoo.it>
Cc: gdb@sourceware.org
Subject: Re: gdbserver unable to attach to process
Date: Sat, 24 Feb 2007 20:46:00 -0000 [thread overview]
Message-ID: <20070224161509.GB27534@caradoc.them.org> (raw)
In-Reply-To: <45E05F1A.9020907@yahoo.it>
On Sat, Feb 24, 2007 at 04:51:54PM +0100, Francesco Bradascio wrote:
> Hello,
> I developing an application for mobilinux (kernel 2.6.10) on ARM V6
> platform and I need to debug it , however, the gdbserver remote debugger
> agent is unable to attach to any executable... here's what happens:
>
> First I tried to execute gdbserver (on remote platform - IP:
> 192.168.16.2) as follow:
>
> $gdbserver :12345 /usr/local/bin/flP5
> Process /usr/local/bin/flP5 created; pid = 4630
>
> at this point my application (flP5) starts without stopping at first
> instruction (as should be) and only after I kill the process 4630,
> gdbserver shows the "Listening on port 12345" prompt, furthermore, when
> I do "target remote 192.168.16.2:12345" from my host's gdb I get a
> "Connection refused" message and the remote gdbserver exits.
This sounds like something is wrong with your environment, not with
gdbserver - I would be suspicious of a kernel bug of some sort. Or,
perhaps, is the application set-user-ID? That would also explain this:
> $ /usr/local/bin/flP5 &
> [1] 4718
> $ gdbserver :12345 --attach 4718
> Cannot attach to process 4718: Operation not permitted (1)
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2007-02-24 16:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-24 16:15 Francesco Bradascio
2007-02-24 20:46 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070224161509.GB27534@caradoc.them.org \
--to=drow@false.org \
--cc=fbradasc@yahoo.it \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox