mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 21:34:13 +08:00
* source.c: Fix whitespace.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2004-06-27 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* source.c: Fix whitespace.
|
||||||
|
|
||||||
2004-06-27 Mark Kettenis <kettenis@gnu.org>
|
2004-06-27 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* configure.in: Include <sys/param.h> for td_pcb test.
|
* configure.in: Include <sys/param.h> for td_pcb test.
|
||||||
|
18
gdb/source.c
18
gdb/source.c
@ -1,6 +1,6 @@
|
|||||||
/* List lines of source files for GDB, the GNU debugger.
|
/* List lines of source files for GDB, the GNU debugger.
|
||||||
Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
|
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.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
@ -787,8 +787,7 @@ done:
|
|||||||
If the file was found, this function returns 1, and FULL_PATHNAME is
|
If the file was found, this function returns 1, and FULL_PATHNAME is
|
||||||
set to the fully-qualified pathname.
|
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
|
int
|
||||||
source_full_path_of (char *filename, char **full_pathname)
|
source_full_path_of (char *filename, char **full_pathname)
|
||||||
{
|
{
|
||||||
@ -916,8 +915,8 @@ symtab_to_fullname (struct symtab *s)
|
|||||||
|
|
||||||
/* Don't check s->fullname here, the file could have been
|
/* Don't check s->fullname here, the file could have been
|
||||||
deleted/moved/..., look for it again */
|
deleted/moved/..., look for it again */
|
||||||
r =
|
r = find_and_open_source (s->objfile, s->filename, s->dirname,
|
||||||
find_and_open_source (s->objfile, s->filename, s->dirname, &s->fullname);
|
&s->fullname);
|
||||||
|
|
||||||
if (r)
|
if (r)
|
||||||
{
|
{
|
||||||
@ -945,19 +944,18 @@ psymtab_to_fullname (struct partial_symtab *ps)
|
|||||||
|
|
||||||
/* Don't check ps->fullname here, the file could have been
|
/* Don't check ps->fullname here, the file could have been
|
||||||
deleted/moved/..., look for it again */
|
deleted/moved/..., look for it again */
|
||||||
r =
|
r = find_and_open_source (ps->objfile, ps->filename, ps->dirname,
|
||||||
find_and_open_source (ps->objfile, ps->filename, ps->dirname,
|
|
||||||
&ps->fullname);
|
&ps->fullname);
|
||||||
|
|
||||||
if (r)
|
if (r)
|
||||||
{
|
{
|
||||||
close (r);
|
close (r);
|
||||||
return ps->fullname;
|
return ps->fullname;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create and initialize the table S->line_charpos that records
|
/* Create and initialize the table S->line_charpos that records
|
||||||
the positions of the lines in the source file, which is assumed
|
the positions of the lines in the source file, which is assumed
|
||||||
to be open on descriptor DESC.
|
to be open on descriptor DESC.
|
||||||
|
Reference in New Issue
Block a user