From: Pedro Alves Date: Mon, 14 Feb 2011 22:08:48 +0000 (+0000) Subject: * exec.c (section_table_available_memory): Change `len' parameter X-Git-Tag: cygwin-1_7_8-release~121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=424447eef3554474b508e0ee0be21347e1d8fc46;p=platform%2Fupstream%2Fbinutils.git * exec.c (section_table_available_memory): Change `len' parameter type to ULONGEST. * exec.h (section_table_available_memory): Ditto. * value.h (read_value_memory): Rename the `offset' parameter to `embedded_offset'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4a07065..c88a9f4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,15 @@ 2011-02-14 Pedro Alves Jan Kratochvil + * exec.c (section_table_available_memory): Change `len' parameter + type to ULONGEST. + * exec.h (section_table_available_memory): Ditto. + * value.h (read_value_memory): Rename the `offset' parameter to + `embedded_offset'. + +2011-02-14 Pedro Alves + Jan Kratochvil + * memrange.c (compare_mem_ranges): Mention sort order in describing comment. (normalize_mem_ranges): Add comment. Fix ra->length calculation. diff --git a/gdb/exec.c b/gdb/exec.c index 1cca3b3..9f082c0 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -574,12 +574,11 @@ map_vmap (bfd *abfd, bfd *arch) VEC(mem_range_s) * section_table_available_memory (VEC(mem_range_s) *memory, - CORE_ADDR memaddr, LONGEST len, + CORE_ADDR memaddr, ULONGEST len, struct target_section *sections, struct target_section *sections_end) { struct target_section *p; - ULONGEST memend = memaddr + len; for (p = sections; p < sections_end; p++) { diff --git a/gdb/exec.h b/gdb/exec.h index a8df608..89fd156 100644 --- a/gdb/exec.h +++ b/gdb/exec.h @@ -52,7 +52,7 @@ extern int resize_section_table (struct target_section_table *, int); extern VEC(mem_range_s) * section_table_available_memory (VEC(mem_range_s) *ranges, - CORE_ADDR memaddr, LONGEST len, + CORE_ADDR memaddr, ULONGEST len, struct target_section *sections, struct target_section *sections_end); diff --git a/gdb/value.h b/gdb/value.h index b5e77fd..b8ce97b 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -410,7 +410,7 @@ extern int value_available_contents_eq (const struct value *val1, int offset1, memory is likewise unavailable. STACK indicates whether the memory is known to be stack memory. */ -extern void read_value_memory (struct value *val, int offset, +extern void read_value_memory (struct value *val, int embedded_offset, int stack, CORE_ADDR memaddr, gdb_byte *buffer, size_t length);