diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2003-06-12 15:44:24 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2003-06-12 15:44:24 +0000 |
commit | f70a7d6187474279095499b00effcbe1ec8ce3d8 (patch) | |
tree | 1eb7263f4519e6bc37c378252acbb2d24cbb4e08 /gdb/tui/tuiStack.c | |
parent | b64296285dff79d58ce7b9dad578d5f3438a6cd4 (diff) | |
download | gdb-f70a7d6187474279095499b00effcbe1ec8ce3d8.zip gdb-f70a7d6187474279095499b00effcbe1ec8ce3d8.tar.gz gdb-f70a7d6187474279095499b00effcbe1ec8ce3d8.tar.bz2 |
* Makefile.in (tuiDisassem.o): Update dependencies.
tui:
* tuiSource.c (tuiVerticalSourceScroll): Use get_frame_pc.
* tuiSourceWin.c (tuiHorizontalSourceScroll): Likewise.
* tuiStack.c (tui_get_function_from_frame): Likewise.
(tuiShowFrameInfo): Likewise.
* tuiWin.c (_makeVisibleWithNewHeight): Likewise.
* tui-hooks.c (tui_selected_frame_level_changed_hook): Likewise.
* tuiDisassem.c (tuiVerticalDisassemScroll): Likewise.
Include "disasm.h".
Diffstat (limited to 'gdb/tui/tuiStack.c')
-rw-r--r-- | gdb/tui/tuiStack.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/tui/tuiStack.c b/gdb/tui/tuiStack.c index 69a6b6c..dca0618 100644 --- a/gdb/tui/tuiStack.c +++ b/gdb/tui/tuiStack.c @@ -233,7 +233,7 @@ tui_get_function_from_frame (struct frame_info *fi) struct ui_file *stream = tui_sfileopen (256); char *p; - print_address_symbolic (fi->pc, stream, demangle, ""); + print_address_symbolic (get_frame_pc (fi), stream, demangle, ""); p = tui_file_get_strbuf (stream); /* Use simple heuristics to isolate the function name. The symbol can @@ -356,7 +356,7 @@ tuiShowFrameInfo (struct frame_info *fi) tui_set_locator_info (sal.symtab == 0 ? "??" : sal.symtab->filename, tui_get_function_from_frame (fi), sal.line, - fi->pc); + get_frame_pc (fi)); tuiShowLocatorContent (); startLine = 0; for (i = 0; i < (sourceWindows ())->count; i++) @@ -374,10 +374,11 @@ tuiShowFrameInfo (struct frame_info *fi) } else { - if (find_pc_partial_function (fi->pc, (char **) NULL, &low, (CORE_ADDR) NULL) == 0) + if (find_pc_partial_function (get_frame_pc (fi), (char **) NULL, + &low, (CORE_ADDR) NULL) == 0) error ("No function contains program counter for selected frame.\n"); else - low = tuiGetLowDisassemblyAddress (low, fi->pc); + low = tuiGetLowDisassemblyAddress (low, get_frame_pc (fi)); } if (winInfo == srcWin) |