diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-02-28 16:35:11 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-02-28 16:35:11 +0000 |
commit | de7ad6d87da03879d179315c2f4405ebf787c83f (patch) | |
tree | ed0b40e9411274a81eaa3bf6daf3871b710526fa /gdb/alpha-tdep.c | |
parent | d2c0206038f860931ab9400a89c10adeb5bd94c4 (diff) | |
download | gdb-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/alpha-tdep.c')
-rw-r--r-- | gdb/alpha-tdep.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; + } } } } |