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 | 4b5752d02f5e21329ae17790fd766b5f2df0d362 (patch) | |
tree | 196c10beb13b46ae12ccffd79affbbba5dbbca2c /gdb/memattr.h | |
parent | bce613b9bfac3b56f4f9742776db11aeec875300 (diff) | |
download | gdb-4b5752d02f5e21329ae17790fd766b5f2df0d362.zip gdb-4b5752d02f5e21329ae17790fd766b5f2df0d362.tar.gz gdb-4b5752d02f5e21329ae17790fd766b5f2df0d362.tar.bz2 |
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 046af68..077ccee 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. */ |