From: Kent Borg <kentborg@borg.org>
To: linuxppc-embedded@lists.linuxppc.org
Subject: ptrace Problem
Date: Tue, 15 Jul 2003 11:43:37 -0400 [thread overview]
Message-ID: <20030715114337.A12505@borg.org> (raw)
I am trying to get ptrace() working correctly so I can use gdbserver
so we can debug with more power than printf()'s.
The kernel is 2.4.21-rc1 with stuff done to it to support some
hardware that is under development (the chip has a 603-style core).
I can fire up gdbserver, I can attach to it with a gdb on my host. I
can watch the little ptrace transactions go by and (after eliminating
some false leads) they all do seem to be doing sensible things. But
when I try an "si", everything seems OK upto the _switch at which
point the kernel SIGSTOPs on a 0x0 instruction at the first
instruction of my application (or is it the second instruction?--I am
not sure, the address complained about is first+4, maybe one worked).
Once this happens my Abatron BDI-2000 is somehow hosed and can no
longer write to memory. My next download takes all the time I would
expect, but the results are all 0x0 unless I first powercycle the
Abatron.
The kernel seems to otherwise be working quite well. As this is new
hardware, I cannot state that it is certainly working correctly.
Obviously I suspect that something is wrong with how some memory
management data structure is set up when the ptrace calls are being
made by gdbserver, but I am not smart enough to have a clear idea of
what to look for. (I don't want to get lost in walking page tables
and tracing TBL faulting and whatnot for another week--not if I don't
have to.) I have tried changing from our previous gdb and gdbserver
to the Denx versions with same results.
Suggestions?
Thanks,
-kb
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next reply other threads:[~2003-07-15 15:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-15 15:43 Kent Borg [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-07-15 16:30 ptrace Problem Jean-Denis Boyer
2003-07-15 21:49 ` Kent Borg
2003-07-16 10:37 ` Kenneth Johansson
2003-07-16 14:26 ` Kent Borg
2003-07-16 19:46 Jean-Denis Boyer
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=20030715114337.A12505@borg.org \
--to=kentborg@borg.org \
--cc=linuxppc-embedded@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).