summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-03-16 18:06:44 +0000
committerKevin Buettner <kevinb@redhat.com>2001-03-16 18:06:44 +0000
commit162ab0435e33dbd4bbedcd8188e611aac5962ee2 (patch)
treeb36d3fdfa26d7353c96e7e6a1d87c99c8276d448 /gdb
parentf970cf1b33642635263512c7c5c736675ea3db27 (diff)
downloadgdb-162ab0435e33dbd4bbedcd8188e611aac5962ee2.tar.gz
Change type of ``storage_needed'' from unsigned int to long.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/solib-aix5.c6
-rw-r--r--gdb/solib-svr4.c2
3 files changed, 12 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 41b5858d670..07191a5c412 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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)
diff --git a/gdb/solib-aix5.c b/gdb/solib-aix5.c
index b75425b0235..9207c214490 100644
--- a/gdb/solib-aix5.c
+++ b/gdb/solib-aix5.c
@@ -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)
{
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index bad1c201941..79bbcdc55ee 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -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;