* Makefile.in (tuiDisassem.o): Update dependencies.
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 12 Jun 2003 15:44:24 +0000 (15:44 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Thu, 12 Jun 2003 15:44:24 +0000 (15:44 +0000)
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".

gdb/ChangeLog
gdb/Makefile.in
gdb/tui/ChangeLog
gdb/tui/tui-hooks.c
gdb/tui/tuiDisassem.c
gdb/tui/tuiSource.c
gdb/tui/tuiSourceWin.c
gdb/tui/tuiStack.c
gdb/tui/tuiWin.c

index 250f42e7ba6f0396dca154db6bc1d268096f3fb8..1556068a68ead6e34f512d078eb4e241e5778b6d 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-12  Andreas Schwab  <schwab@suse.de>
+
+       * Makefile.in (tuiDisassem.o): Update dependencies.
+
 2003-06-12  David Carlton  <carlton@bactrian.org>
 
        * symtab.h: Delete declaration of make_symbol_overload_list.
index 2cf5b278f696d91f6298772f13d930912a88b8c8..a7ebc6a82688787530ce0de4dd1f41d1aa3bd3b0 100644 (file)
@@ -2704,7 +2704,7 @@ tuiDataWin.o: $(srcdir)/tui/tuiDataWin.c $(config_h) $(defs_h) $(tui_h) \
 tuiDisassem.o: $(srcdir)/tui/tuiDisassem.c $(config_h) $(defs_h) $(symtab_h) \
        $(breakpoint_h) $(frame_h) $(value_h) $(tui_h) $(tuiData_h) \
        $(tuiWin_h) $(tuiLayout_h) $(tuiSourceWin_h) $(tuiStack_h) \
-       $(tui_file_h)
+       $(tui_file_h) $(disasm_h)
        $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tuiDisassem.c
 tuiGeneralWin.o: $(srcdir)/tui/tuiGeneralWin.c $(config_h) $(defs_h) \
        $(tui_h) $(tuiData_h) $(tuiGeneralWin_h) $(tuiWin_h)
index f44f9aa9a4883331098e86e4e4ad4449437fbec4..79a3353e3dca464eb3e1a86a1d725f355fa054dc 100644 (file)
@@ -1,3 +1,14 @@
+2003-06-12  Andreas Schwab  <schwab@suse.de>
+
+       * 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".
+
 2003-05-08  Andrew Cagney  <cagney@redhat.com>
 
        * tuiRegs.c: Use MAX_REGISTER_SIZE instead of
index db6c3f666bf9aa585a376abd7b443c408985f6e0..569ab078cf18cc4ae101e8eb64da27890926d6e2 100644 (file)
@@ -250,7 +250,7 @@ tui_selected_frame_level_changed_hook (int level)
     {
       struct symtab *s;
       
-      s = find_pc_symtab (fi->pc);
+      s = find_pc_symtab (get_frame_pc (fi));
       /* elz: this if here fixes the problem with the pc not being displayed
          in the tui asm layout, with no debug symbols. The value of s 
          would be 0 here, and select_source_symtab would abort the
index 0ddf32c1b9946e699ab17193a5add5056cad957b..a8668c4132da9b75c7d52a1b04c2777b8689edb5 100644 (file)
@@ -45,6 +45,7 @@
 #include "frame.h"
 #include "value.h"
 #include "source.h"
+#include "disasm.h"
 
 #include "tui.h"
 #include "tuiData.h"
@@ -408,7 +409,7 @@ tuiVerticalDisassemScroll (TuiScrollDirection scrollDirection,
 
       content = (TuiWinContent) disassemWin->generic.content;
       if (cursal.symtab == (struct symtab *) NULL)
-       s = find_pc_symtab (deprecated_selected_frame->pc);
+       s = find_pc_symtab (get_frame_pc (deprecated_selected_frame));
       else
        s = cursal.symtab;
 
index ceccd64532e5cbd0df19974945428aab5d4f5872..68e7d9978d2d0a44ef9fb3882b80b9156787c0f5 100644 (file)
@@ -340,7 +340,7 @@ tuiVerticalSourceScroll (TuiScrollDirection scrollDirection,
       struct symtab_and_line cursal = get_current_source_symtab_and_line ();
 
       if (cursal.symtab == (struct symtab *) NULL)
-       s = find_pc_symtab (deprecated_selected_frame->pc);
+       s = find_pc_symtab (get_frame_pc (deprecated_selected_frame));
       else
        s = cursal.symtab;
 
index ae844ce7029e9307ac696b149ad1f847eb0e3b23..cd52333c10961544171ce84e4d3f9fa16a16fd3e 100644 (file)
@@ -355,7 +355,7 @@ tuiHorizontalSourceScroll (TuiWinInfoPtr winInfo,
       struct symtab_and_line cursal = get_current_source_symtab_and_line ();
 
       if (cursal.symtab == (struct symtab *) NULL)
-       s = find_pc_symtab (deprecated_selected_frame->pc);
+       s = find_pc_symtab (get_frame_pc (deprecated_selected_frame));
       else
        s = cursal.symtab;
 
index 69a6b6c662f8c06e6f6b39c397b0da3a0ee4ea96..dca06189d80973b82fe3db17105acf28d890e869 100644 (file)
@@ -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)
index 9ad82f57a65577d023d89772daae606ef3dd1444..268562efa33ac99f602a31caca996a64fd753ae5 100644 (file)
@@ -1406,7 +1406,7 @@ _makeVisibleWithNewHeight (TuiWinInfoPtr winInfo)
          struct symtab_and_line cursal = get_current_source_symtab_and_line ();
 
 
-         s = find_pc_symtab (deprecated_selected_frame->pc);
+         s = find_pc_symtab (get_frame_pc (deprecated_selected_frame));
          if (winInfo->generic.type == SRC_WIN)
            line.lineNo = cursal.line;
          else