aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-02-28 16:35:11 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-02-28 16:35:11 +0000
commitde7ad6d87da03879d179315c2f4405ebf787c83f (patch)
treeed0b40e9411274a81eaa3bf6daf3871b710526fa /gdb
parentd2c0206038f860931ab9400a89c10adeb5bd94c4 (diff)
downloadgdb-de7ad6d87da03879d179315c2f4405ebf787c83f.zip
gdb-de7ad6d87da03879d179315c2f4405ebf787c83f.tar.gz
gdb-de7ad6d87da03879d179315c2f4405ebf787c83f.tar.bz2
* alpha-tdep.c (find_proc_desc): Only attempt to set PROC_LOCALOFF
(found_heuristic) if found_heuristic is non-NULL.
Diffstat (limited to 'gdb')
-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;
+ }
}
}
}