This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Addition of a special memory reading command
- From: Petr HluzÃn <petr dot hluzin at gmail dot com>
- To: Tomas Martinec <fyzmat at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 30 May 2011 21:43:55 +0200
- Subject: Re: Addition of a special memory reading command
- References: <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