Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Petr Hluzín" <petr.hluzin@gmail.com>
To: Tomas Martinec <fyzmat@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Addition of a special memory reading command
Date: Mon, 30 May 2011 19:44:00 -0000	[thread overview]
Message-ID: <BANLkTimO18hnvOGpbtEHUTUo0Nbpq0yxXg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=rs+62oeC3X5qV_C=HCRYrSTQpZg@mail.gmail.com>

Hi Tomas

On 30 May 2011 18:04, Tomas Martinec <fyzmat@gmail.com> wrote:
>
> Probably I will be able to write a patch to gdb that implements the
> command. The patch would create the command and implement it in the
> remote protocol - for other targets it would just print "not
> supported".

GDB remote protocol already allows specifying some memory regions,
though you cannot specify a unreadable&unwritable "hole". The remote
command seems to be accesible as "info mem" command. See
http://sourceware.org/gdb/onlinedocs/gdb/Memory-Map-Format.html

Also there are "info proc mappings" not "info target", unfortunately
neither these are  exactly what you want.

I guess it would be useful to enhance these commands than implementing new ones.

-- 
Petr Hluzin


  reply	other threads:[~2011-05-30 19:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-30 16:05 Tomas Martinec
2011-05-30 19:44 ` Petr Hluzín [this message]
2011-06-01 16:35   ` Tomas Martinec
2011-06-01 19:05     ` Petr Hluzín
2011-06-01 19:23       ` Tomas Martinec
2011-06-10 18:25       ` Tomas Martinec

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=BANLkTimO18hnvOGpbtEHUTUo0Nbpq0yxXg@mail.gmail.com \
    --to=petr.hluzin@gmail.com \
    --cc=fyzmat@gmail.com \
    --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