* hppa-tdep.c (skip_prologue): Return "pc" not zero
authorJeff Law <law@redhat.com>
Fri, 25 Mar 1994 18:48:24 +0000 (18:48 +0000)
committerJeff Law <law@redhat.com>
Fri, 25 Mar 1994 18:48:24 +0000 (18:48 +0000)
        if no unwind descriptor is found.

gdb/ChangeLog
gdb/hppa-tdep.c

index 565e2bcbd4af02df1cdeaa26bbaed25910fe2a06..dfc305d8f36ce3b1522627d05175cd1c2f07f374 100644 (file)
@@ -1,5 +1,8 @@
 Fri Mar 25 10:14:03 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
 
+       * hppa-tdep.c (skip_prologue): Return "pc" not zero
+       if no unwind descriptor is found.
+
        * tm-hppa.h (NUM_REGS): Bump to 128 registers.
        (REGISTER_NAMES): Add entries for "right-half" of FP registers.
        (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
index 42ae0b3dc41d0b50e7927b5362cba7367ee4fcb0..d6ae66bd46dee9c239739ee3e6687f17288e943f 100644 (file)
@@ -1421,7 +1421,7 @@ skip_prologue(pc)
 
   u = find_unwind_entry (pc);
   if (!u)
-    return 0;
+    return pc;
 
   /* This is how much of a frame adjustment we need to account for.  */
   stack_remaining = u->Total_frame_size << 3;