From: Jim Kingdon Date: Tue, 28 Feb 1995 16:35:11 +0000 (+0000) Subject: * alpha-tdep.c (find_proc_desc): Only attempt to set PROC_LOCALOFF X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de7ad6d87da03879d179315c2f4405ebf787c83f;p=binutils-gdb.git * alpha-tdep.c (find_proc_desc): Only attempt to set PROC_LOCALOFF (found_heuristic) if found_heuristic is non-NULL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dc90b3edc09..cd0734ac6fe 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 * monitor.c: General gcc -Wall lint cleanup and reformat. diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index b08fb20a37a..bce35811b09 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; + } } } }