* blockframe.c (inside_main_func): Don't treat a zero PC specially.
authorMark Kettenis <kettenis@gnu.org>
Tue, 16 Dec 2003 21:23:50 +0000 (21:23 +0000)
committerMark Kettenis <kettenis@gnu.org>
Tue, 16 Dec 2003 21:23:50 +0000 (21:23 +0000)
Needed to fix PR backtrace/1476.

gdb/ChangeLog
gdb/blockframe.c

index 3d05afd03d530d6e4c9480dabb6a2ed369bf5698..92930593cecf61dbba773da6734052d5c78a2699 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-16  Mark Kettenis  <kettenis@gnu.org>
+
+       * blockframe.c (inside_main_func): Don't treat a zero PC specially.
+       Needed to fix PR backtrace/1476.
+
 2003-12-16  David Carlton  <carlton@kealia.com>
 
        * cp-support.c (class_name_from_physname): Add DMGL_PARAMS.
index ac73ef227a8c9b7f9c22078d67d1887e267e2a19..cebc10af076661fcd0654b24ed166b1085ff9c7c 100644 (file)
@@ -73,18 +73,13 @@ deprecated_inside_entry_file (CORE_ADDR addr)
 }
 
 /* Test whether PC is in the range of addresses that corresponds to
-   the "main" function.
-
-   A PC of zero is always considered to be the bottom of the stack.  */
+   the "main" function.  */
 
 int
 inside_main_func (CORE_ADDR pc)
 {
   struct minimal_symbol *msymbol;
 
-  if (pc == 0)
-    return 1;
-
   if (symfile_objfile == 0)
     return 0;