]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2002-10-21 David Carlton <carlton@math.stanford.edu>
authorDavid Carlton <carlton@bactrian.org>
Tue, 22 Oct 2002 00:17:28 +0000 (00:17 +0000)
committerDavid Carlton <carlton@bactrian.org>
Tue, 22 Oct 2002 00:17:28 +0000 (00:17 +0000)
* buildsym.c (add_symbol_to_list): Expand comment.
* objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
* Makefile.in (x86-64-tdep.o): Depend on block_h.
* x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END and
SYMBOL_BLOCK_VALUE.

gdb/ChangeLog
gdb/Makefile.in
gdb/buildsym.c
gdb/dwarf2read.c
gdb/objc-lang.c
gdb/x86-64-tdep.c

index 60aad17647eb03becf7b036873a262cfb6b1cfde..2dc13c24d738260282b8907a3d4120e4032c17aa 100644 (file)
@@ -1,3 +1,11 @@
+2002-10-21  David Carlton  <carlton@math.stanford.edu>
+
+       * buildsym.c (add_symbol_to_list): Expand comment.
+       * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
+       * Makefile.in (x86-64-tdep.o): Depend on block_h.
+       * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END and
+       SYMBOL_BLOCK_VALUE.
+
 2002-10-18  David Carlton  <carlton@math.stanford.edu>
 
        * Makefile.in (block_h): New variable.
index 248f38f645322421d640d9f6bb3e7d3335db5c8d..3bf4396c6963d5cd82c854b7033f97c63bad7664 100644 (file)
@@ -2295,7 +2295,7 @@ x86-64-linux-tdep.o: x86-64-linux-tdep.c $(defs_h) $(inferior_h) \
        $(gdbcore_h) $(regcache_h) $(x86_64_tdep_h) $(dwarf2cfi_h)
 x86-64-tdep.o: x86-64-tdep.c $(defs_h) $(inferior_h) $(gdbcore_h) \
        $(gdbcmd_h) $(arch_utils_h) $(regcache_h) $(symfile_h) $(objfiles_h) \
-       $(x86_64_tdep_h) $(dwarf2cfi_h) $(gdb_assert_h)
+       $(x86_64_tdep_h) $(dwarf2cfi_h) $(gdb_assert_h) $(block_h)
 xcoffread.o: xcoffread.c $(defs_h) $(bfd_h) $(gdb_string_h) $(gdb_stat_h) \
        $(coff_internal_h) $(libcoff_h) $(coff_xcoff_h) $(libxcoff_h) \
        $(coff_rs6000_h) $(symtab_h) $(gdbtypes_h) $(symfile_h) \
index 1371f3799cfe75a992f10dcbebbbfed1c7203df6..a912108f91c1fd67cbc7be61e4490959840434fb 100644 (file)
@@ -123,8 +123,9 @@ add_free_pendings (struct pending *list)
 }
       
 /* Add a symbol to one of the lists of symbols.  While we're at it, if
-   we're in the C++ case, check to see if it references an anonymous
-   namespace; if so, add an appropriate using directive.  */
+   we're in the C++ case and don't have full namespace debugging info,
+   check to see if it references an anonymous namespace; if so, add an
+   appropriate using directive.  */
 
 void
 add_symbol_to_list (struct symbol *symbol, struct pending **listhead)
@@ -254,7 +255,6 @@ add_using_directive (const char *name, unsigned int outer_length,
                                     using_list);
 }
 
-
 /* At end of reading syms, or in case of quit, really free as many
    `struct pending's as we can easily find. */
 
index 1de9e8094b8ad2c1ecd34d794a0f093945662e1c..c5ddc535465e9f1b2cc17e2b2bed913b20e42f90 100644 (file)
@@ -893,7 +893,7 @@ static char *dwarf2_linkage_name (struct die_info *);
 
 static char *dwarf2_name (struct die_info *);
 
-static struct die_info * dwarf2_extension (struct die_info *die);
+static struct die_info *dwarf2_extension (struct die_info *die);
 
 static char *dwarf_tag_name (unsigned int);
 
index 6f379484ac22085dddf2908c392524d9852fec42..17bc66f519d4c73a4cb550b0c1cb000eae9ba3be 100644 (file)
@@ -1321,8 +1321,8 @@ find_methods (struct symtab *symtab, char type,
        continue;
 
       if (symtab)
-       if ((SYMBOL_VALUE_ADDRESS (msymbol) <  block->startaddr) ||
-           (SYMBOL_VALUE_ADDRESS (msymbol) >= block->endaddr))
+       if ((SYMBOL_VALUE_ADDRESS (msymbol) <  BLOCK_START (block)) ||
+           (SYMBOL_VALUE_ADDRESS (msymbol) >= BLOCK_END (block)))
          /* Not in the specified symtab.  */
          continue;
 
index dbc5611cb0d5d6786485fbd2a2284ebf70a8d19b..0e5ba5db9d9fe0796e16b34be21e5cff9ea8cef4 100644 (file)
@@ -32,6 +32,7 @@
 #include "x86-64-tdep.h"
 #include "dwarf2cfi.h"
 #include "gdb_assert.h"
+#include "block.h"
 
 /* Register numbers of various important registers.  */
 #define RAX_REGNUM 0
@@ -889,7 +890,7 @@ x86_64_skip_prologue (CORE_ADDR pc)
   if (!v_function || !v_function->ginfo.value.block || !v_sal.symtab)
     return pc;
 
-  endaddr = v_function->ginfo.value.block->endaddr;
+  endaddr = BLOCK_END (SYMBOL_BLOCK_VALUE (v_function));
 
   for (i = 0; i < v_sal.symtab->linetable->nitems; i++)
     if (v_sal.symtab->linetable->item[i].pc >= pc