aboutsummaryrefslogtreecommitdiff
path: root/gdb/memattr.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>2001-01-24 21:01:02 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>2001-01-24 21:01:02 +0000
commitf4d650ecb379a6d7d92e60d43d9c9773a192395e (patch)
treef27c4acaffb3a84b487383fd0536d031a5fda4d3 /gdb/memattr.c
parentf332af5233dc21b499026fcd63ec57139b76bc74 (diff)
downloadgdb-f4d650ecb379a6d7d92e60d43d9c9773a192395e.zip
gdb-f4d650ecb379a6d7d92e60d43d9c9773a192395e.tar.gz
gdb-f4d650ecb379a6d7d92e60d43d9c9773a192395e.tar.bz2
* dcache.c (dcache_write_line): Fix typo.
* memattr.c (delete_mem_region): Replace free() with xfree(). (mem_number): Add explicit type. * sol-thread.c (sol_thread_xfer_memory): Add attrib argument. (rw_common): Likewise.
Diffstat (limited to 'gdb/memattr.c')
-rw-r--r--gdb/memattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/memattr.c b/gdb/memattr.c
index 5e9e9d5..ba64291 100644
--- a/gdb/memattr.c
+++ b/gdb/memattr.c
@@ -28,7 +28,7 @@ const struct mem_attrib default_mem_attrib =
};
static struct mem_region *mem_region_chain = NULL;
-static mem_number = 0;
+static int mem_number = 0;
static struct mem_region *
create_mem_region (CORE_ADDR lo, CORE_ADDR hi,
@@ -71,7 +71,7 @@ create_mem_region (CORE_ADDR lo, CORE_ADDR hi,
static void
delete_mem_region (struct mem_region *m)
{
- free (m);
+ xfree (m);
}
/*