From 267f65044fa43a04cbb6fd51d5c8200cf4a45c89 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 29 Jul 2011 17:38:47 +0000 Subject: [PATCH] * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O. (library_list_start_segment): Update. (library_list_start_section): Update. --- gdb/ChangeLog | 6 ++++++ gdb/solib-target.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2183d5bf0ee..84ac5a2e0a8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2011-07-29 Tom Tromey + + * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O. + (library_list_start_segment): Update. + (library_list_start_section): Update. + 2011-07-28 Phil Muldoon * varobj.c (value_get_print_value): Move hint check later into the diff --git a/gdb/solib-target.c b/gdb/solib-target.c index b6032e067f5..54a6cf00a67 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -28,7 +28,7 @@ #include "gdb_string.h" -DEF_VEC_O(CORE_ADDR); +DEF_VEC_I(CORE_ADDR); /* Private data for each loaded library. */ struct lm_info @@ -93,7 +93,7 @@ library_list_start_segment (struct gdb_xml_parser *parser, gdb_xml_error (parser, _("Library list with both segments and sections")); - VEC_safe_push (CORE_ADDR, last->segment_bases, &address); + VEC_safe_push (CORE_ADDR, last->segment_bases, address); } static void @@ -110,7 +110,7 @@ library_list_start_section (struct gdb_xml_parser *parser, gdb_xml_error (parser, _("Library list with both segments and sections")); - VEC_safe_push (CORE_ADDR, last->section_bases, &address); + VEC_safe_push (CORE_ADDR, last->section_bases, address); } /* Handle the start of a element. */ -- 2.30.2