From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27468 invoked by alias); 29 Dec 2006 09:49:34 -0000 Received: (qmail 27460 invoked by uid 22791); 29 Dec 2006 09:49:33 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO brahms.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Dec 2006 09:49:29 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.13.8/8.13.8) with ESMTP id kBT9nQR0031575 for ; Fri, 29 Dec 2006 10:49:26 +0100 (CET) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.13.8/8.13.8/Submit) id kBT9nPeN014608; Fri, 29 Dec 2006 10:49:25 +0100 (CET) Date: Fri, 29 Dec 2006 09:49:00 -0000 Message-Id: <200612290949.kBT9nPeN014608@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: gdb-patches@sourceware.org Subject: [ob] Make memory-map.c compile again Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00342.txt.bz2 Someone has been writing too much C++ code. Committed as obvious, Mark Index: ChangeLog from Mark Kettenis * 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')