Addition of a special memory reading command
Petr Hluzín
petr.hluzin@gmail.com
Mon May 30 19:44:00 GMT 2011
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
More information about the Gdb
mailing list