2004-06-24 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Thu, 24 Jun 2004 20:42:42 +0000 (20:42 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 24 Jun 2004 20:42:42 +0000 (20:42 +0000)
* objfiles.h (struct entry_info): Delete entry_func_lowpc and
entry_func_highpc fields.
* objfiles.c (init_entry_point_info): Do not clear
entry_func_lowpc and entry_func_highpc.
(objfile_relocate): Do not relocate entry_func_lowpc and
entry_func_highpc.
* dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
entry_func_highpc.
* dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
entry_func_highpc.
* blockframe.c (legacy_frame_chain_valid): Replace tests against
entry_func_lowpc and entry_func_highpc with call to
inside_entry_func.

gdb/ChangeLog
gdb/blockframe.c
gdb/dwarf2read.c
gdb/dwarfread.c
gdb/objfiles.c
gdb/objfiles.h

index 51e746b..8997876 100644 (file)
@@ -1,3 +1,19 @@
+2004-06-24  Andrew Cagney  <cagney@gnu.org>
+
+       * objfiles.h (struct entry_info): Delete entry_func_lowpc and
+       entry_func_highpc fields.
+       * objfiles.c (init_entry_point_info): Do not clear
+       entry_func_lowpc and entry_func_highpc.
+       (objfile_relocate): Do not relocate entry_func_lowpc and
+       entry_func_highpc.
+       * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
+       entry_func_highpc.
+       * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
+       entry_func_highpc.
+       * blockframe.c (legacy_frame_chain_valid): Replace tests against
+       entry_func_lowpc and entry_func_highpc with call to
+       inside_entry_func.
+
 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
 
        * sparc64-tdep.c (sparc64_store_arguments): Fix passing
index a9f0b60..eb03225 100644 (file)
@@ -524,9 +524,7 @@ legacy_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi)
 
   /* If we're already inside the entry function for the main objfile,
      then it isn't valid.  */
-  if (symfile_objfile != NULL
-      && (symfile_objfile->ei.entry_func_lowpc <= get_frame_pc (fi)
-         && symfile_objfile->ei.entry_func_highpc > get_frame_pc (fi)))
+  if (inside_entry_func (fi))
     return 0;
 
   return 1;
index b07d07c..c1f6c65 100644 (file)
@@ -2504,13 +2504,6 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu)
   /* Record the function range for dwarf_decode_lines.  */
   add_to_cu_func_list (name, lowpc, highpc, cu);
 
-  if (objfile->ei.entry_point >= lowpc &&
-      objfile->ei.entry_point < highpc)
-    {
-      objfile->ei.entry_func_lowpc = lowpc;
-      objfile->ei.entry_func_highpc = highpc;
-    }
-
   new = push_context (0, lowpc);
   new->name = new_symbol (die, die->type, cu);
 
index b9fe7d7..cb31543 100644 (file)
@@ -1792,12 +1792,6 @@ read_func_scope (struct dieinfo *dip, char *thisdie, char *enddie,
       return;
     }
 
-  if (objfile->ei.entry_point >= dip->at_low_pc &&
-      objfile->ei.entry_point < dip->at_high_pc)
-    {
-      objfile->ei.entry_func_lowpc = dip->at_low_pc;
-      objfile->ei.entry_func_highpc = dip->at_high_pc;
-    }
   new = push_context (0, dip->at_low_pc);
   new->name = new_symbol (dip, objfile);
   list_in_scope = &local_symbols;
index a40721e..48d6954 100644 (file)
@@ -250,8 +250,6 @@ init_entry_point_info (struct objfile *objfile)
       /* Examination of non-executable.o files.  Short-circuit this stuff.  */
       objfile->ei.entry_point = INVALID_ENTRY_POINT;
     }
-  objfile->ei.entry_func_lowpc = INVALID_ENTRY_LOWPC;
-  objfile->ei.entry_func_highpc = INVALID_ENTRY_HIGHPC;
   objfile->ei.main_func_lowpc = INVALID_ENTRY_LOWPC;
   objfile->ei.main_func_highpc = INVALID_ENTRY_HIGHPC;
 }
@@ -649,12 +647,6 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
       }
   }
 
-  if (objfile->ei.entry_func_lowpc != INVALID_ENTRY_LOWPC)
-    {
-      objfile->ei.entry_func_lowpc += ANOFFSET (delta, SECT_OFF_TEXT (objfile));
-      objfile->ei.entry_func_highpc += ANOFFSET (delta, SECT_OFF_TEXT (objfile));
-    }
-
   if (objfile->ei.main_func_lowpc != INVALID_ENTRY_LOWPC)
     {
       objfile->ei.main_func_lowpc += ANOFFSET (delta, SECT_OFF_TEXT (objfile));
index c2a6a01..29be972 100644 (file)
@@ -110,12 +110,6 @@ struct entry_info
 
 #define INVALID_ENTRY_POINT (~0)       /* ~0 will not be in any file, we hope.  */
 
-    /* Start (inclusive) and end (exclusive) of function containing the
-       entry point. */
-
-    CORE_ADDR entry_func_lowpc;
-    CORE_ADDR entry_func_highpc;
-
     /* Start (inclusive) and end (exclusive) of the user code main() function. */
 
     CORE_ADDR main_func_lowpc;