aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/alpha-tdep.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dc90b3e..cd0734a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index b08fb20..bce3581 100644
--- a/gdb/alpha-tdep.c
+++ b/gdb/alpha-tdep.c
@@ -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;
+ }
}
}
}