* exec.c (section_table_available_memory): Change `len' parameter
authorPedro Alves <palves@redhat.com>
Mon, 14 Feb 2011 22:08:48 +0000 (22:08 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 14 Feb 2011 22:08:48 +0000 (22:08 +0000)
type to ULONGEST.
* exec.h (section_table_available_memory): Ditto.
* value.h (read_value_memory): Rename the `offset' parameter to
`embedded_offset'.

gdb/ChangeLog
gdb/exec.c
gdb/exec.h
gdb/value.h

index 4a07065eb012f165601a1149178730810b05214a..c88a9f4f7283ecf438666ea6c08a5b760633ef2e 100644 (file)
@@ -1,3 +1,12 @@
+2011-02-14  Pedro Alves  <pedro@codesourcery.com>
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * 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  <pedro@codesourcery.com>
            Jan Kratochvil  <jan.kratochvil@redhat.com>
 
index 1cca3b336d021ae3c4d4ac9fa96bd6f07f7b856f..9f082c0f21d9f57678cf05143f39f4b440de665f 100644 (file)
@@ -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++)
     {
index a8df60878b4410ed1f6e1de854fb96512730771e..89fd1565f7c65224f128de8471250e8411b06d3a 100644 (file)
@@ -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);
 
index b5e77fdab8e9688e1f17f2e013e41cddfbf2829f..b8ce97b4a0435efa2f46eab719249be7a1ac1767 100644 (file)
@@ -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);