* 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.
This commit is contained in:
parent
e7edbbdb57
commit
c214a6fd4d
4 changed files with 16 additions and 4 deletions
|
@ -1,3 +1,13 @@
|
||||||
|
2002-09-22 Fernando Nasser <fnasser@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2002-09-21 Andrew Cagney <cagney@redhat.com>
|
2002-09-21 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
* complaints.c (symfile_explanations): Remove new-line from
|
* complaints.c (symfile_explanations): Remove new-line from
|
||||||
|
|
|
@ -4620,8 +4620,7 @@ parse_breakpoint_sals (char **address,
|
||||||
should produce the results we want almost all of the time while
|
should produce the results we want almost all of the time while
|
||||||
leaving default_breakpoint_* alone. */
|
leaving default_breakpoint_* alone. */
|
||||||
|
|
||||||
struct symtab_and_line cursal =
|
struct symtab_and_line cursal = get_current_source_symtab_and_line ();
|
||||||
get_current_or_default_source_symtab_and_line ();
|
|
||||||
|
|
||||||
if (default_breakpoint_valid
|
if (default_breakpoint_valid
|
||||||
&& (!cursal.symtab
|
&& (!cursal.symtab
|
||||||
|
|
|
@ -134,8 +134,7 @@ scm_unpack (struct type *type, char *valaddr, enum type_code context)
|
||||||
static int
|
static int
|
||||||
in_eval_c (void)
|
in_eval_c (void)
|
||||||
{
|
{
|
||||||
struct symtab_and_line cursal =
|
struct symtab_and_line cursal = get_current_source_symtab_and_line ();
|
||||||
get_current_or_default_source_symtab_and_line ();
|
|
||||||
|
|
||||||
if (cursal.symtab && cursal.symtab->filename)
|
if (cursal.symtab && cursal.symtab->filename)
|
||||||
{
|
{
|
||||||
|
|
|
@ -179,6 +179,8 @@ get_current_or_default_source_symtab_and_line (void)
|
||||||
|
|
||||||
cursal.symtab = current_source_symtab;
|
cursal.symtab = current_source_symtab;
|
||||||
cursal.line = current_source_line;
|
cursal.line = current_source_line;
|
||||||
|
cursal.pc = 0;
|
||||||
|
cursal.end = 0;
|
||||||
|
|
||||||
return cursal;
|
return cursal;
|
||||||
}
|
}
|
||||||
|
@ -197,6 +199,8 @@ set_current_source_symtab_and_line (struct symtab_and_line *sal)
|
||||||
|
|
||||||
current_source_symtab = sal->symtab;
|
current_source_symtab = sal->symtab;
|
||||||
current_source_line = sal->line;
|
current_source_line = sal->line;
|
||||||
|
cursal.pc = 0;
|
||||||
|
cursal.end = 0;
|
||||||
|
|
||||||
return cursal;
|
return cursal;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue