public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: <gdb-patches@sourceware.org>
Subject: [PATCH]p-typeprint.c  Fix printing of type of method arguments
Date: Fri, 15 Oct 2010 23:12:00 -0000	[thread overview]
Message-ID: <001001cb6cbe$68d09fc0$3a71df40$@muller@ics-cnrs.unistra.fr> (raw)

  
  The printing of the type of
the arguments of methods was sometimes
messed up...
  It appeared that a local variable LEN
was not correctly reset for the next argument.

  I committed the patch below that
fixes this problem.


Pierre Muller
Pascal language support maintainer for GDB


gdb/ChangeLog entry:

2010-10-16  Pierre Muller  <muller@ics.u-strasbg.fr>

	* p-typeprint.c (pascal_type_print_method_args): Fix problem in
	display of type of method arguments.

Index: p-typeprint.c
===================================================================
RCS file: /cvs/src/src/gdb/p-typeprint.c,v
retrieving revision 1.34
diff -u -p -r1.34 p-typeprint.c
--- p-typeprint.c	21 Jun 2010 18:01:51 -0000	1.34
+++ p-typeprint.c	15 Oct 2010 23:04:43 -0000
@@ -165,14 +165,15 @@ pascal_type_print_method_args (char *phy
 
   if (physname && (*physname != 0))
     {
-      int i = 0;
-      int len = 0;
-      char storec;
-      char *argname;
       fputs_filtered (" (", stream);
       /* we must demangle this */
       while (isdigit (physname[0]))
 	{
+	  int len = 0;
+	  int i;
+	  char storec;
+	  char *argname;
+
 	  while (isdigit (physname[len]))
 	    {
 	      len++;

                 reply	other threads:[~2010-10-15 23:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='001001cb6cbe$68d09fc0$3a71df40$@muller@ics-cnrs.unistra.fr' \
    --to=pierre.muller@ics-cnrs.unistra.fr \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).