summaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2002-09-22 20:29:52 +0000
committerFernando Nasser <fnasser@redhat.com>2002-09-22 20:29:52 +0000
commit80fa85bd5b93f2d57023261b1655c54bd0aabd3f (patch)
treecf4693a697b411e0109e327e0afafbda11407f45 /gdb/source.c
parent5f84a9f6a3382af3c817d54f33159c55da56321c (diff)
downloadgdb-80fa85bd5b93f2d57023261b1655c54bd0aabd3f.tar.gz
* source.c (get_current_source_symtab_and_line): Initialize sal.pc and
sal.end fields. (get_current_or_default_source_symtab_and_line): Ditto. * breakpoint.c (parse_breakpoint_sals): Use correct accessor function so we do not cause a new source symtab to be searched for (reverting an unintentional change from the 2002-09-20 patch). * scm-lang.c (scm_unpac): Ditto.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/source.c b/gdb/source.c
index e5d99d3db09..d2e47fee8ad 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -179,6 +179,8 @@ get_current_or_default_source_symtab_and_line (void)
cursal.symtab = current_source_symtab;
cursal.line = current_source_line;
+ cursal.pc = 0;
+ cursal.end = 0;
return cursal;
}
@@ -197,6 +199,8 @@ set_current_source_symtab_and_line (struct symtab_and_line *sal)
current_source_symtab = sal->symtab;
current_source_line = sal->line;
+ cursal.pc = 0;
+ cursal.end = 0;
return cursal;
}