* alpha-tdep.c (find_proc_desc): Only attempt to set PROC_LOCALOFF
authorJim Kingdon <jkingdon@engr.sgi.com>
Tue, 28 Feb 1995 16:35:11 +0000 (16:35 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Tue, 28 Feb 1995 16:35:11 +0000 (16:35 +0000)
(found_heuristic) if found_heuristic is non-NULL.

gdb/ChangeLog
gdb/alpha-tdep.c

index dc90b3edc09a238a7da5aebf28273fdb346c5792..cd0734ac6feb15ab2f1d1be5c6683538ef99344f 100644 (file)
@@ -1,3 +1,8 @@
+Tue Feb 28 08:31:40 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * alpha-tdep.c (find_proc_desc): Only attempt to set PROC_LOCALOFF
+       (found_heuristic) if found_heuristic is non-NULL.
+
 Mon Feb 27 11:56:32 1995  Stan Shebs  <shebs@andros.cygnus.com>
 
        * monitor.c: General gcc -Wall lint cleanup and reformat.
index b08fb20a37ac304e86ff07b917f8ff7a4d9bc310..bce35811b09c09d03eae2f07b57d9b8d95dff575 100644 (file)
@@ -505,9 +505,12 @@ find_proc_desc (pc, next_frame)
                alpha_extra_func_info_t found_heuristic =
                  heuristic_proc_desc (PROC_LOW_ADDR (proc_desc),
                                       pc, next_frame);
-               PROC_LOCALOFF (found_heuristic) = PROC_LOCALOFF (proc_desc);
                if (found_heuristic)
-                 proc_desc = found_heuristic;
+                 {
+                   PROC_LOCALOFF (found_heuristic) =
+                     PROC_LOCALOFF (proc_desc);
+                   proc_desc = found_heuristic;
+                 }
              }
          }
     }