From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11252 invoked by alias); 27 Jun 2004 18:36:22 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11244 invoked from network); 27 Jun 2004 18:36:21 -0000 Received: from unknown (HELO lisa.goe.net) (134.76.166.209) by sourceware.org with SMTP; 27 Jun 2004 18:36:21 -0000 Received: from mutter.goe.net (mail@mutter-lisa0.a11.private [192.168.31.26]) by lisa.goe.net (8.12.10/8.12.10) with ESMTP id i5RIaKx7012600 for ; Sun, 27 Jun 2004 20:36:20 +0200 Received: from whitebox.a11.private ([192.168.31.90] helo=whitebox.home) by mutter.goe.net with esmtp (Exim 4.30) id 1BeeVn-00042W-OS for gdb-patches@sources.redhat.com; Sun, 27 Jun 2004 20:36:19 +0200 Received: by whitebox.home (Postfix, from userid 500) id D7E5E80C0E; Sun, 27 Jun 2004 20:36:18 +0200 (CEST) To: gdb-patches@sources.redhat.com Subject: Whitespace fixup From: Andreas Schwab X-Yow: Is this ANYWHERE, USA? Date: Sun, 27 Jun 2004 18:36:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2004-06/txt/msg00606.txt.bz2 This patch fixes whitespace in source.c, tested on ia64-linux and committed as obvious. Andreas. 2004-06-27 Andreas Schwab * source.c: Fix whitespace. Index: gdb/source.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/source.c,v retrieving revision 1.51 diff -u -a -p -a -u -p -r1.51 gdb/source.c --- gdb/source.c 10 Jun 2004 20:05:44 -0000 1.51 +++ gdb/source.c 27 Jun 2004 18:33:38 -0000 @@ -1,6 +1,6 @@ /* List lines of source files for GDB, the GNU debugger. Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, - 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 + 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. =20 This file is part of GDB. @@ -741,11 +741,11 @@ openp (const char *path, int try_cwd_fir strcat (filename, string); =20 if (is_regular_file (filename)) - { - fd =3D open (filename, mode); - if (fd >=3D 0) - break; - } + { + fd =3D open (filename, mode); + if (fd >=3D 0) + break; + } } =20 done: @@ -765,9 +765,9 @@ done: /* Beware the // my son, the Emacs barfs, the botch that catch... */ =20 char *f =3D concat (current_directory, - IS_DIR_SEPARATOR (current_directory[strlen (current_directory) = - 1]) - ? "" : SLASH_STRING, - filename, NULL); + IS_DIR_SEPARATOR (current_directory[strlen (current_directory) - 1]) + ? "" : SLASH_STRING, + filename, NULL); *filename_opened =3D xfullpath (f); xfree (f); } @@ -787,8 +787,7 @@ done: If the file was found, this function returns 1, and FULL_PATHNAME is set to the fully-qualified pathname. =20 - Else, this functions returns 0, and FULL_PATHNAME is set to NULL. - */ + Else, this functions returns 0, and FULL_PATHNAME is set to NULL. */ int source_full_path_of (char *filename, char **full_pathname) { @@ -825,9 +824,9 @@ source_full_path_of (char *filename, cha FULLNAME is set to NULL. */ int find_and_open_source (struct objfile *objfile, - const char *filename, - const char *dirname,=20 - char **fullname) + const char *filename, + const char *dirname, + char **fullname) { char *path =3D source_path; const char *p; @@ -892,11 +891,11 @@ find_and_open_source (struct objfile *ob int open_source_file (struct symtab *s) { - if (!s) - return -1; + if (!s) + return -1; =20 return find_and_open_source (s->objfile, s->filename, s->dirname,=20 - &s->fullname); + &s->fullname); } =20 /* Finds the fullname that a symtab represents. @@ -916,14 +915,14 @@ symtab_to_fullname (struct symtab *s) =20 /* Don't check s->fullname here, the file could have been=20 deleted/moved/..., look for it again */ - r =3D - find_and_open_source (s->objfile, s->filename, s->dirname, &s->fullnam= e); + r =3D find_and_open_source (s->objfile, s->filename, s->dirname, + &s->fullname); =20 if (r) - { - close (r); - return s->fullname; - } + { + close (r); + return s->fullname; + } =20 return NULL; } @@ -945,19 +944,18 @@ psymtab_to_fullname (struct partial_symt =20 /* Don't check ps->fullname here, the file could have been deleted/moved/..., look for it again */ - r =3D - find_and_open_source (ps->objfile, ps->filename, ps->dirname, - &ps->fullname); + r =3D find_and_open_source (ps->objfile, ps->filename, ps->dirname, + &ps->fullname); =20 if (r)=20 - { - close (r); - return ps->fullname; -} -=0C + { + close (r); + return ps->fullname; + } + return NULL; } - +=0C /* Create and initialize the table S->line_charpos that records the positions of the lines in the source file, which is assumed to be open on descriptor DESC. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstra=C3=9Fe 5, 90409 N=C3=BCrnberg, Germany Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."