Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: gdb-patches@sourceware.org
Subject: [ob] Make memory-map.c compile again
Date: Fri, 29 Dec 2006 09:49:00 -0000	[thread overview]
Message-ID: <200612290949.kBT9nPeN014608@brahms.sibelius.xs4all.nl> (raw)

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')


             reply	other threads:[~2006-12-29  9:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-29  9:49 Mark Kettenis [this message]
2006-12-29 13:59 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200612290949.kBT9nPeN014608@brahms.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox