Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: David Lecomber <david@streamline-computing.com>
To: gdb-patches@sources.redhat.com
Subject: Re: Large array printing patch for Fortran
Date: Mon, 29 Sep 2003 17:35:00 -0000	[thread overview]
Message-ID: <20030929173517.GA12280@streamline-computing.com> (raw)
In-Reply-To: <20030915195058.GA12113@streamline-computing.com>

This patch sets the formatting correctly in the patch I previously
applied.  

2003-09-29  David Lecomber  <dsl@sources.redhat.com>

	* f-valprint.c: Reformatting


Index: f-valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/f-valprint.c,v
retrieving revision 1.18
diff -u -p -r1.18 f-valprint.c
--- f-valprint.c	16 Sep 2003 18:56:35 -0000	1.18
+++ f-valprint.c	29 Sep 2003 17:31:59 -0000
@@ -276,6 +276,7 @@ f77_create_arrayprint_offset_tbl (struct
 
 /* Actual function which prints out F77 arrays, Valaddr == address in 
    the superior.  Address == the address in the inferior.  */
+
 static void
 f77_print_array_1 (int nss, int ndimensions, struct type *type, char *valaddr,
 		   CORE_ADDR address, struct ui_file *stream, int format,
@@ -295,13 +296,13 @@ f77_print_array_1 (int nss, int ndimensi
 			     stream, format, deref_ref, recurse, pretty, elts);
 	  fprintf_filtered (stream, ") ");
 	}
-      if (*elts >= print_max && i < F77_DIM_SIZE (nss)) {
+      if (*elts >= print_max && i < F77_DIM_SIZE (nss)) 
 	fprintf_filtered (stream, "...");
-      }
     }
   else
     {
-      for (i = 0; (i < F77_DIM_SIZE (nss) && (*elts) < print_max); i++, (*elts)++)
+      for (i = 0; i < F77_DIM_SIZE (nss) && (*elts) < print_max; 
+	   i++, (*elts)++)
 	{
 	  val_print (TYPE_TARGET_TYPE (type),
 		     valaddr + i * F77_DIM_OFFSET (ndimensions),
@@ -312,7 +313,7 @@ f77_print_array_1 (int nss, int ndimensi
 	  if (i != (F77_DIM_SIZE (nss) - 1))
 	    fprintf_filtered (stream, ", ");
 
-	  if ((( *elts) == print_max - 1) && (i != (F77_DIM_SIZE (nss) - 1)))
+	  if ((*elts == print_max - 1) && (i != (F77_DIM_SIZE (nss) - 1)))
 	    fprintf_filtered (stream, "...");
 	}
     }


  parent reply	other threads:[~2003-09-29 17:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-10 14:36 David Lecomber
2003-09-15 15:58 ` Daniel Jacobowitz
2003-09-15 20:40   ` David Lecomber
2003-09-15 20:52     ` Daniel Jacobowitz
2003-09-29 17:35     ` David Lecomber [this message]
2003-10-06 16:45       ` David Carlton
2003-10-06 16:51         ` Daniel Jacobowitz
2003-10-06 16:56           ` David Carlton
2003-10-06 18:50             ` Andrew Cagney

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=20030929173517.GA12280@streamline-computing.com \
    --to=david@streamline-computing.com \
    --cc=gdb-patches@sources.redhat.com \
    /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