Change type of ``storage_needed'' from unsigned int to long.
authorKevin Buettner <kevinb@redhat.com>
Fri, 16 Mar 2001 18:06:44 +0000 (18:06 +0000)
committerKevin Buettner <kevinb@redhat.com>
Fri, 16 Mar 2001 18:06:44 +0000 (18:06 +0000)
gdb/ChangeLog
gdb/solib-aix5.c
gdb/solib-svr4.c

index 41b5858d6704c24230c1c9b272e58aeef40cc88e..07191a5c412983d5ad67d97c6eedee7e01dd9e21 100644 (file)
@@ -1,3 +1,13 @@
+2001-03-16  Kevin Buettner  <kevinb@redhat.com>
+
+       * solib-svr4.c (bfd_lookup_symbol):  Change type of
+       ``storage_needed'' from unsigned int to long in order to
+       match return type of bfd_get_symtab_upper_bound() and
+       bfd_get_dynamic_symtab_upper_bound().
+       * solib-aix5.c (bfd_lookup_symbol): Likewise.  Also, eliminate
+       REASONABLE_LIMIT hack which had been added to work around this
+       problem.
+
 2001-03-15  Kevin Buettner  <kevinb@redhat.com>
 
        * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
index b75425b02358bee4e03cbfdf9bb4956a71757298..9207c2144909ad0819ac3583b7afe780ad9cb87f 100644 (file)
@@ -105,7 +105,7 @@ static void aix5_relocate_main_executable (void);
 static CORE_ADDR
 bfd_lookup_symbol (bfd *abfd, char *symname)
 {
-  unsigned int storage_needed;
+  long storage_needed;
   asymbol *sym;
   asymbol **symbol_table;
   unsigned int number_of_symbols;
@@ -140,10 +140,6 @@ bfd_lookup_symbol (bfd *abfd, char *symname)
   /* Look for the symbol in the dynamic string table too.  */
 
   storage_needed = bfd_get_dynamic_symtab_upper_bound (abfd);
-/* FIXME: This problem should be addressed in BFD.  */
-#define REASONABLE_LIMIT 0x400000
-  if (storage_needed > REASONABLE_LIMIT)
-    storage_needed = REASONABLE_LIMIT;
 
   if (storage_needed > 0)
     {
index bad1c2019417d90f0292510366be2f19b5a51e7c..79bbcdc55ee553a284bfd7f2af24e91168cc594f 100644 (file)
@@ -364,7 +364,7 @@ static CORE_ADDR bfd_lookup_symbol (bfd *, char *);
 static CORE_ADDR
 bfd_lookup_symbol (bfd *abfd, char *symname)
 {
-  unsigned int storage_needed;
+  long storage_needed;
   asymbol *sym;
   asymbol **symbol_table;
   unsigned int number_of_symbols;