diff options
author | Pedro Alves <palves@redhat.com> | 2007-07-08 19:31:11 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2007-07-08 19:31:11 +0000 |
commit | 358eb95ea312924332f2ccbd43c22d5b3048a9de (patch) | |
tree | cf4b16d609ba0e1b49f3d86d83f6bd8264ca8e11 /gdb | |
parent | f51a0672c162d04ed7bb86e667dd078a04bf671c (diff) | |
download | gdb-358eb95ea312924332f2ccbd43c22d5b3048a9de.zip gdb-358eb95ea312924332f2ccbd43c22d5b3048a9de.tar.gz gdb-358eb95ea312924332f2ccbd43c22d5b3048a9de.tar.bz2 |
* solib-target.c (library_list_start_segment): Cast address to
CORE_ADDR.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/solib-target.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 125283a..b89708b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/solib-target.c b/gdb/solib-target.c index 2009df4..89571a1 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -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. */ |