From: Kent Borg <kentborg@borg.org>
To: linuxppc-embedded@lists.linuxppc.org
Subject: gdbserver, find_extend_vma(), and VM_GROWSDOWN
Date: Mon, 7 Jul 2003 12:05:23 -0400 [thread overview]
Message-ID: <20030707120523.B4527@borg.org> (raw)
I am having gdbserver problems. I can run gdbserver and attach to it
with gdb, but the peeks into the application space are failing.
For example, in debugging the peek for the first instruction of my
application, there is a call to find_extend_vma() (in mm/mmap.c). The
test for:
vma->vm_start <= addr
fails, and as this vms is VM_GROWSUP (and not VM_GROWSDOWN), the next
if-statement returns a NULL. That percolates up until ptrace returns
zero.
This application code runs pretty well without gdbserver, what should
I look for next? Is it indeed perverse for the addr to be below the
start? Who is likely to blame for that? Where should I look next?
Do I start grepping for every instance of PT_PTRACED in arch/ppc?
Thanks,
-kb, the Kent whose gdbserver Makefile says it is 4.12.3, and whose
kernel is quite close to 2.4.21.rc1.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next reply other threads:[~2003-07-07 16:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-07 16:05 Kent Borg [this message]
2003-07-07 16:37 ` gdbserver, find_extend_vma(), and VM_GROWSDOWN Wolfgang Denk
[not found] <200307071642.h67GguN01169@hyper.wm.sps.mot.com>
2003-07-07 16:55 ` Wolfgang Denk
[not found] <200307071705.h67H5MD01399@hyper.wm.sps.mot.com>
2003-07-07 17:20 ` Wolfgang Denk
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=20030707120523.B4527@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).