Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb@sourceware.org
Subject: Re: Disabling stack access for remote targets?
Date: Sun, 03 Jun 2012 16:42:00 -0000	[thread overview]
Message-ID: <OF2F6B3515.D760FFF8-ONC1257A12.005B31C5-C1257A12.005BC055@transmode.se> (raw)
In-Reply-To: <20120603151603.GA16834@host2.jankratochvil.net>

Jan Kratochvil <jan.kratochvil@redhat.com> wrote on 2012/06/03 17:16:03:
>
> On Fri, 01 Jun 2012 16:29:23 +0200, Joakim Tjernlund wrote:
> > This can be devastating for a board that hasn't initialized RAM yet.
> > Would it be possible for a remote target to inform gdb not to touch the
> > stack? In its simplest form one could just test for sp == 0
>
> I guess you want:
>    $ info '(gdb)Memory Region Attributes'

Not quite, I don't see memeor attribute "no-access", just ro, wo, and rw.
Second, this is a static setting, you would have to turn it on or off depending
on where your debug is.

Testing for sp == 0 (or sp == ~0) would be much nicer. It would automatically
disable/enable stack access.

 Jocke


  reply	other threads:[~2012-06-03 16:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-01 14:29 Joakim Tjernlund
2012-06-03 15:16 ` Jan Kratochvil
2012-06-03 16:42   ` Joakim Tjernlund [this message]
2012-06-03 16:58     ` Jan Kratochvil
2012-06-03 17:21       ` Joakim Tjernlund

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=OF2F6B3515.D760FFF8-ONC1257A12.005B31C5-C1257A12.005BC055@transmode.se \
    --to=joakim.tjernlund@transmode.se \
    --cc=gdb@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    /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