From de7ad6d87da03879d179315c2f4405ebf787c83f Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Tue, 28 Feb 1995 16:35:11 +0000 Subject: [PATCH] * alpha-tdep.c (find_proc_desc): Only attempt to set PROC_LOCALOFF (found_heuristic) if found_heuristic is non-NULL. --- gdb/ChangeLog | 5 +++++ gdb/alpha-tdep.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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; + } } } } -- 2.30.2