summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2008-07-11 09:18:19 +0000
committerAndreas Schwab <schwab@suse.de>2008-07-11 09:18:19 +0000
commitabe2854cc7917792e988c8ce13d0c596b23d8bd4 (patch)
tree9348d0ca0914982f6dd6d9c39018ec51fbed8537 /bfd
parent5151bfa3adf57964c32cede6be388eaa50e8ba5b (diff)
downloadgdb-abe2854cc7917792e988c8ce13d0c596b23d8bd4.tar.gz
(read_section): Take pointer to bfd_size_type instead
of unsigned long as last parameter. (struct dwarf2_debug): Define dwarf_abbrev_size, dwarf_line_size, dwarf_str_size and dwarf_ranges_size as bfd_size_type instead of unsigned long.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog8
-rw-r--r--bfd/dwarf2.c10
2 files changed, 13 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b107cd34946..f838cbf5c75 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,11 @@
+2008-07-11 Andreas Schwab <schwab@suse.de>
+
+ * dwarf2.c (read_section): Take pointer to bfd_size_type instead
+ of unsigned long as last parameter.
+ (struct dwarf2_debug): Define dwarf_abbrev_size, dwarf_line_size,
+ dwarf_str_size and dwarf_ranges_size as bfd_size_type instead of
+ unsigned long.
+
2008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
* elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 3fcdb22347f..f95b649aca5 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -111,25 +111,25 @@ struct dwarf2_debug
bfd_byte *dwarf_abbrev_buffer;
/* Length of the loaded .debug_abbrev section. */
- unsigned long dwarf_abbrev_size;
+ bfd_size_type dwarf_abbrev_size;
/* Buffer for decode_line_info. */
bfd_byte *dwarf_line_buffer;
/* Length of the loaded .debug_line section. */
- unsigned long dwarf_line_size;
+ bfd_size_type dwarf_line_size;
/* Pointer to the .debug_str section loaded into memory. */
bfd_byte *dwarf_str_buffer;
/* Length of the loaded .debug_str section. */
- unsigned long dwarf_str_size;
+ bfd_size_type dwarf_str_size;
/* Pointer to the .debug_ranges section loaded into memory. */
bfd_byte *dwarf_ranges_buffer;
/* Length of the loaded .debug_ranges section. */
- unsigned long dwarf_ranges_size;
+ bfd_size_type dwarf_ranges_size;
/* If the most recent call to bfd_find_nearest_line was given an
address in an inlined function, preserve a pointer into the
@@ -398,7 +398,7 @@ static bfd_boolean
read_section (bfd *abfd,
const char* section_name, const char* compressed_section_name,
asymbol** syms, bfd_uint64_t offset,
- bfd_byte **section_buffer, unsigned long *section_size)
+ bfd_byte **section_buffer, bfd_size_type *section_size)
{
asection *msec;
bfd_boolean section_is_compressed = FALSE;