diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2006-11-21 16:50:16 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2006-11-21 16:50:16 +0000 |
commit | 54ae77d4e219ffd23cd7a2712a5df41c63ed5e00 (patch) | |
tree | b6cda2a21891cf8a34675de5166fe31d9c5cbd0b /gdb/memattr.h | |
parent | b11930b30e1bf521a849a11eb08bfe6a6d899ca5 (diff) | |
download | gdb-54ae77d4e219ffd23cd7a2712a5df41c63ed5e00.tar.gz |
gdb/
* memattr.h (enum mem_access_mode): New value
MEM_NONE.
* memattr.c (unknown_mem_attrib): New.
(inaccessible_by_default): New.
(show_inaccessible_by_default): New.
(lookup_mem_region): Check inaccessible_by_default.
(dummy_cmd): New.
(mem_set_cmdlist, mem_show_cmdlist): New.
(_initialize_mem): Register new "set" and "show"
commands.
* target.c (memory_xfer_partial): If memory type
is MEM_NONE, return an error.
Clip to region size when calling to_xfer_partial.
If upper limit of memory range is 0, don't clip
anything.
gdb/doc/
* gdb.texinfo (Memory Access Checking): New.
Diffstat (limited to 'gdb/memattr.h')
-rw-r--r-- | gdb/memattr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/memattr.h b/gdb/memattr.h index 046af689635..077ccee86c5 100644 --- a/gdb/memattr.h +++ b/gdb/memattr.h @@ -26,6 +26,7 @@ enum mem_access_mode { + MEM_NONE, /* Memory that is not physically present. */ MEM_RW, /* read/write */ MEM_RO, /* read only */ MEM_WO, /* write only */ @@ -76,7 +77,10 @@ struct mem_attrib struct mem_region { + /* Lowest address in the region. */ CORE_ADDR lo; + /* Address past the highest address of the region. + If 0, upper bound is "infinity". */ CORE_ADDR hi; /* Item number of this memory region. */ |