projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2002-09-25 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git]
/
gdb
/
linespec.c
diff --git
a/gdb/linespec.c
b/gdb/linespec.c
index d1bb4e3328f419d9f572822e21a2b53a796ffdfe..5631fd31433a6a82c850da184a1bdd98edbfd60f 100644
(file)
--- a/
gdb/linespec.c
+++ b/
gdb/linespec.c
@@
-1027,13
+1027,16
@@
decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
/* This is where we need to make sure that we have good defaults.
We must guarantee that this section of code is never executed
when we are called with just a function name, since
/* This is where we need to make sure that we have good defaults.
We must guarantee that this section of code is never executed
when we are called with just a function name, since
-
get_current_or
_default_source_symtab_and_line uses
+
set
_default_source_symtab_and_line uses
select_source_symtab that calls us with such an argument */
if (s == 0 && default_symtab == 0)
{
select_source_symtab that calls us with such an argument */
if (s == 0 && default_symtab == 0)
{
- struct symtab_and_line cursal =
- get_current_or_default_source_symtab_and_line ();
+ struct symtab_and_line cursal;
+
+ /* Make sure we have at least a default source file. */
+ set_default_source_symtab_and_line ();
+ cursal = get_current_source_symtab_and_line ();
default_symtab = cursal.symtab;
default_line = cursal.line;
default_symtab = cursal.symtab;
default_line = cursal.line;
This page took
0.032175 seconds
and
4
git commands to generate.