* solib-target.c (library_list_start_segment): Cast address to
authorPedro Alves <palves@redhat.com>
Sun, 8 Jul 2007 19:31:11 +0000 (19:31 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 8 Jul 2007 19:31:11 +0000 (19:31 +0000)
CORE_ADDR.

gdb/ChangeLog
gdb/solib-target.c

index 125283a4aa41418c59ecdf63ba61f5a9b91a7695..b89708b4559f6a0e7b87f2cbf3ff5d0b146f3374 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-08  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * solib-target.c (library_list_start_segment): Cast address to
+       CORE_ADDR.
+
 2007-07-06  Mark Kettenis  <kettenis@gnu.org>
 
        * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
index 2009df4176a2628d4075304b630305d7581bf527..89571a16d81e74b45916697fdc968616fd51b55a 100644 (file)
@@ -82,8 +82,9 @@ library_list_start_segment (struct gdb_xml_parser *parser,
   VEC(lm_info_p) **list = user_data;
   struct lm_info *last = VEC_last (lm_info_p, *list);
   ULONGEST *address_p = VEC_index (gdb_xml_value_s, attributes, 0)->value;
+  CORE_ADDR address = (CORE_ADDR) *address_p;
 
-  VEC_safe_push (CORE_ADDR, last->segment_bases, address_p);
+  VEC_safe_push (CORE_ADDR, last->segment_bases, &address);
 }
 
 /* Handle the start of a <library> element.  */