* Whitespace fixup
@ 2004-06-27 18:36 Andreas Schwab
2004-06-28 3:56 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2004-06-27 18:36 UTC (permalink / raw)
To: gdb-patches
This patch fixes whitespace in source.c, tested on ia64-linux and
committed as obvious.
Andreas.
2004-06-27 Andreas Schwab <schwab@suse.de>
* source.c: Fix whitespace.
Index: gdb/source.c
===================================================================
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.
This file is part of GDB.
@@ -741,11 +741,11 @@ openp (const char *path, int try_cwd_fir
strcat (filename, string);
if (is_regular_file (filename))
- {
- fd = open (filename, mode);
- if (fd >= 0)
- break;
- }
+ {
+ fd = open (filename, mode);
+ if (fd >= 0)
+ break;
+ }
}
done:
@@ -765,9 +765,9 @@ done:
/* Beware the // my son, the Emacs barfs, the botch that catch... */
char *f = 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 = 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.
- 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,
- char **fullname)
+ const char *filename,
+ const char *dirname,
+ char **fullname)
{
char *path = 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;
return find_and_open_source (s->objfile, s->filename, s->dirname,
- &s->fullname);
+ &s->fullname);
}
/* Finds the fullname that a symtab represents.
@@ -916,14 +915,14 @@ symtab_to_fullname (struct symtab *s)
/* Don't check s->fullname here, the file could have been
deleted/moved/..., look for it again */
- r =
- find_and_open_source (s->objfile, s->filename, s->dirname, &s->fullname);
+ r = find_and_open_source (s->objfile, s->filename, s->dirname,
+ &s->fullname);
if (r)
- {
- close (r);
- return s->fullname;
- }
+ {
+ close (r);
+ return s->fullname;
+ }
return NULL;
}
@@ -945,19 +944,18 @@ psymtab_to_fullname (struct partial_symt
/* Don't check ps->fullname here, the file could have been
deleted/moved/..., look for it again */
- r =
- find_and_open_source (ps->objfile, ps->filename, ps->dirname,
- &ps->fullname);
+ r = find_and_open_source (ps->objfile, ps->filename, ps->dirname,
+ &ps->fullname);
if (r)
- {
- close (r);
- return ps->fullname;
-}
-\f
+ {
+ close (r);
+ return ps->fullname;
+ }
+
return NULL;
}
-
+\f
/* 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.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Whitespace fixup
2004-06-27 18:36 Whitespace fixup Andreas Schwab
@ 2004-06-28 3:56 ` Eli Zaretskii
2004-06-28 8:46 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2004-06-28 3:56 UTC (permalink / raw)
To: Andreas Schwab; +Cc: gdb-patches
> From: Andreas Schwab <schwab@suse.de>
> Date: Sun, 27 Jun 2004 20:36:17 +0200
>
> This patch fixes whitespace in source.c, tested on ia64-linux and
> committed as obvious.
FWIW, I think such changes don't justify adding 2004 to the list of
years in the copyright blurb.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Whitespace fixup
2004-06-28 3:56 ` Eli Zaretskii
@ 2004-06-28 8:46 ` Andreas Schwab
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2004-06-28 8:46 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gdb-patches
"Eli Zaretskii" <eliz@gnu.org> writes:
>> From: Andreas Schwab <schwab@suse.de>
>> Date: Sun, 27 Jun 2004 20:36:17 +0200
>>
>> This patch fixes whitespace in source.c, tested on ia64-linux and
>> committed as obvious.
>
> FWIW, I think such changes don't justify adding 2004 to the list of
> years in the copyright blurb.
There were already other (non-trivial) changes to this file this year.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-06-28 8:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-27 18:36 Whitespace fixup Andreas Schwab
2004-06-28 3:56 ` Eli Zaretskii
2004-06-28 8:46 ` Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox