* stack.c (print_frame): Use result of frame_address_in_block()
instead of fi->pc when evaluating symbols. (backtrace_command_1): Ditto.
This commit is contained in:
parent
a208b0cb2b
commit
6f0eaa018a
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2002-07-11 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
|
* stack.c (print_frame): Use result of frame_address_in_block()
|
||||||
|
instead of fi->pc when evaluating symbols.
|
||||||
|
(backtrace_command_1): Ditto.
|
||||||
|
|
||||||
2002-07-11 Andrew Cagney <cagney@redhat.com>
|
2002-07-11 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
* cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
|
* cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
|
||||||
|
|
|
@ -461,7 +461,7 @@ print_frame (struct frame_info *fi,
|
||||||
stb = ui_out_stream_new (uiout);
|
stb = ui_out_stream_new (uiout);
|
||||||
old_chain = make_cleanup_ui_out_stream_delete (stb);
|
old_chain = make_cleanup_ui_out_stream_delete (stb);
|
||||||
|
|
||||||
func = find_pc_function (fi->pc);
|
func = find_pc_function (frame_address_in_block (fi));
|
||||||
if (func)
|
if (func)
|
||||||
{
|
{
|
||||||
/* In certain pathological cases, the symtabs give the wrong
|
/* In certain pathological cases, the symtabs give the wrong
|
||||||
|
@ -480,7 +480,7 @@ print_frame (struct frame_info *fi,
|
||||||
ever changed many parts of GDB will need to be changed (and we'll
|
ever changed many parts of GDB will need to be changed (and we'll
|
||||||
create a find_pc_minimal_function or some such). */
|
create a find_pc_minimal_function or some such). */
|
||||||
|
|
||||||
struct minimal_symbol *msymbol = lookup_minimal_symbol_by_pc (fi->pc);
|
struct minimal_symbol *msymbol = lookup_minimal_symbol_by_pc (frame_address_in_block (fi));
|
||||||
if (msymbol != NULL
|
if (msymbol != NULL
|
||||||
&& (SYMBOL_VALUE_ADDRESS (msymbol)
|
&& (SYMBOL_VALUE_ADDRESS (msymbol)
|
||||||
> BLOCK_START (SYMBOL_BLOCK_VALUE (func))))
|
> BLOCK_START (SYMBOL_BLOCK_VALUE (func))))
|
||||||
|
@ -528,7 +528,7 @@ print_frame (struct frame_info *fi,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
struct minimal_symbol *msymbol = lookup_minimal_symbol_by_pc (fi->pc);
|
struct minimal_symbol *msymbol = lookup_minimal_symbol_by_pc (frame_address_in_block (fi));
|
||||||
if (msymbol != NULL)
|
if (msymbol != NULL)
|
||||||
{
|
{
|
||||||
funname = SYMBOL_NAME (msymbol);
|
funname = SYMBOL_NAME (msymbol);
|
||||||
|
@ -1111,7 +1111,7 @@ backtrace_command_1 (char *count_exp, int show_locals, int from_tty)
|
||||||
fi = get_prev_frame (fi))
|
fi = get_prev_frame (fi))
|
||||||
{
|
{
|
||||||
QUIT;
|
QUIT;
|
||||||
ps = find_pc_psymtab (fi->pc);
|
ps = find_pc_psymtab (frame_address_in_block (fi));
|
||||||
if (ps)
|
if (ps)
|
||||||
PSYMTAB_TO_SYMTAB (ps); /* Force syms to come in */
|
PSYMTAB_TO_SYMTAB (ps); /* Force syms to come in */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue