public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH]p-typeprint.c  Fix printing of type of method arguments
@ 2010-10-15 23:12 Pierre Muller
  0 siblings, 0 replies; only message in thread
From: Pierre Muller @ 2010-10-15 23:12 UTC (permalink / raw)
  To: gdb-patches

  
  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++;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-15 23:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-15 23:12 [PATCH]p-typeprint.c Fix printing of type of method arguments Pierre Muller

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