From 4b5752d02f5e21329ae17790fd766b5f2df0d362 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 21 Nov 2006 16:50:16 +0000 Subject: 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. --- gdb/memattr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/memattr.h') 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. */ -- cgit v1.1