2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 26 Mar 2001 02:48:23 +0000 (02:48 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 26 Mar 2001 02:48:23 +0000 (02:48 +0000)
From  Andrew Cagney  <ac131313@redhat.com>

        * coffread.c (coff_symtab_read): Initialize
  ``fcn_first_line_addr''.  Check that the ``.bf'' always preceeds
  the ``.ef'' info.
* dbxread.c (find_text_range): Initialize ``start'' and ``end''.

gdb/ChangeLog
gdb/coffread.c
gdb/dbxread.c

index 3dfb65e3d2754bddd24507a84c3f319bf6d49490..38efd9f4c0b3dfa668b9036b5afe39498fe812cc 100644 (file)
@@ -1,3 +1,12 @@
+2001-03-25  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
+
+       From  Andrew Cagney  <ac131313@redhat.com>
+       
+        * coffread.c (coff_symtab_read): Initialize
+       ``fcn_first_line_addr''.  Check that the ``.bf'' always preceeds
+       the ``.ef'' info.
+       * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
+
 2001-03-23  Andrew Cagney  <ac131313@redhat.com>
 
        * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
index 526e0e40c9efbcae92dd324e55e2d864663dbbec..7f775de49f23bc1462b5a4f15c5e1f994bbb3d31 100644 (file)
@@ -740,7 +740,7 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms,
   char *filestring = "";
   int depth = 0;
   int fcn_first_line = 0;
-  CORE_ADDR fcn_first_line_addr;
+  CORE_ADDR fcn_first_line_addr = 0;
   int fcn_last_line = 0;
   int fcn_start_addr = 0;
   long fcn_line_ptr = 0;
@@ -1009,6 +1009,8 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms,
            }
          else if (STREQ (cs->c_name, ".ef"))
            {
+             if (!within_function)
+               error ("Bad coff function information\n");
              /* the value of .ef is the address of epilogue code;
                 not useful for gdb.  */
              /* { main_aux.x_sym.x_misc.x_lnsz.x_lnno
index 56a1ccddf2db614375ebec55bb5a7277f887da40..0452e5b24006db5fb20e8726e1ca0c38b0cc23ef 100644 (file)
@@ -213,7 +213,8 @@ find_text_range (bfd * sym_bfd, struct objfile *objfile)
 {
   asection *sec;
   int found_any = 0;
-  CORE_ADDR start, end;
+  CORE_ADDR start = 0;
+  CORE_ADDR end = 0;
 
   for (sec = sym_bfd->sections; sec; sec = sec->next)
     if (bfd_get_section_flags (sym_bfd, sec) & SEC_CODE)
This page took 0.035339 seconds and 4 git commands to generate.