aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-target.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib-target.c')
-rw-r--r--gdb/solib-target.c3
1 files changed, 2 insertions, 1 deletions
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. */