aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2004-03-05 04:49:52 +0000
committerJoel Brobecker <brobecker@gnat.com>2004-03-05 04:49:52 +0000
commit52b5e991eec325c9ecea3229d584636b78b4a633 (patch)
tree52c50a108f5b046396c9091725c2e1923168fafc
parent3a7fb99b71337a9a8f99a54a41ca10a57aee4fe0 (diff)
downloadgdb-52b5e991eec325c9ecea3229d584636b78b4a633.zip
gdb-52b5e991eec325c9ecea3229d584636b78b4a633.tar.gz
gdb-52b5e991eec325c9ecea3229d584636b78b4a633.tar.bz2
* hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/hppa-tdep.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 884cf2c..8237ba3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-04 J. Brobecker <brobecker@gnat.com>
+
+ * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
+
2004-03-04 Daniel Jacobowitz <drow@mvista.com>
* dwarf2read.c: Add comment describing memory lifetimes.
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index ccbdcba..549a811 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -4617,7 +4617,7 @@ hppa_frame_cache (struct frame_info *next_frame, void **this_cache)
/* Yow! */
u = find_unwind_entry (frame_func_unwind (next_frame));
if (!u)
- return;
+ return (*this_cache);
/* Turn the Entry_GR field into a bitmask. */
saved_gr_mask = 0;