This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Make memory-map.c compile again
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sourceware dot org
- Date: Fri, 29 Dec 2006 10:49:25 +0100 (CET)
- Subject: [ob] Make memory-map.c compile again
Someone has been writing too much C++ code.
Committed as obvious,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* memory-map.c (memory_map_end_element): Move variable
declarations to the begining of the block.
Index: memory-map.c
===================================================================
RCS file: /cvs/src/src/gdb/memory-map.c,v
retrieving revision 1.3
diff -u -p -r1.3 memory-map.c
--- memory-map.c 5 Oct 2006 19:42:31 -0000 1.3
+++ memory-map.c 29 Dec 2006 09:34:07 -0000
@@ -141,10 +141,11 @@ memory_map_end_element (void *data_, con
{
if (strcmp (data->property_name, "blocksize") == 0)
{
+ char *end = NULL;
+
if (!data->character_data)
throw_error (XML_PARSE_ERROR,
_("Empty content of 'property' element"));
- char *end = NULL;
data->currently_parsing->attrib.blocksize
= strtoul (data->character_data, &end, 0);
if (*end != '\0')