* alpha-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
authorJim Kingdon <jkingdon@engr.sgi.com>
Mon, 13 Mar 1995 23:37:10 +0000 (23:37 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Mon, 13 Mar 1995 23:37:10 +0000 (23:37 +0000)
use the PDR, just examine prologues instead.

gdb/ChangeLog
gdb/alpha-tdep.c

index 22d2553..3a604d8 100644 (file)
@@ -1,3 +1,8 @@
+Mon Mar 13 15:25:47 1995  Jim Kingdon  <kingdon@deneb.cygnus.com>
+
+       * alpha-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
+       use the PDR, just examine prologues instead.
+
 Fri Mar 10 16:13:18 1995  Kung Hsu  <kung@mexican.cygnus.com>
 
 start-sanitize-arc
index 81e1d76..b75155a 100644 (file)
@@ -490,6 +490,11 @@ find_proc_desc (pc, next_frame)
                             0, NULL);
     }
 
+  /* If we never found a PDR for this function in symbol reading, then
+     examine prologues to find the information.  */
+  if (sym && ((mips_extra_func_info_t) SYMBOL_VALUE (sym))->pdr.framereg == -1)
+    sym = NULL;
+
   if (sym)
     {
        /* IF this is the topmost frame AND