OSDN Git Service
(root)
/
pf3gnuchains
/
sourceware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38af3b4
)
* source.c (openp): Squelch warning about "filename".
author
drow
<drow>
Mon, 13 Jan 2003 20:26:13 +0000
(20:26 +0000)
committer
drow
<drow>
Mon, 13 Jan 2003 20:26:13 +0000
(20:26 +0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/source.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index
e4da29e
..
0fd32b8
100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,5
+1,9
@@
2003-01-13 Daniel Jacobowitz <drow@mvista.com>
+ * source.c (openp): Squelch warning about "filename".
+
+2003-01-13 Daniel Jacobowitz <drow@mvista.com>
+
* source.c (openp): If the file does not exist don't necessarily
search the path.
diff --git
a/gdb/source.c
b/gdb/source.c
index
f3700db
..
c2269fa
100644
(file)
--- a/
gdb/source.c
+++ b/
gdb/source.c
@@
-687,7
+687,10
@@
openp (const char *path, int try_cwd_first, const char *string,
goto done;
}
else
- fd = -1;
+ {
+ filename = NULL;
+ fd = -1;
+ }
for (i = 0; string[i]; i++)
if (IS_DIR_SEPARATOR (string[i]))