aboutsummaryrefslogtreecommitdiff
path: root/gdb/osdata.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-16 00:46:46 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-16 00:46:46 +0000
commit5cc80db34dcbe944fe7b480c9841f309c0cf6e96 (patch)
tree3ee3107bbf08fab571cf8f08c35726b1e9c47dcc /gdb/osdata.c
parentb8d56208c522b6a27efe7790770ef65a3031da7b (diff)
downloadgdb-5cc80db34dcbe944fe7b480c9841f309c0cf6e96.zip
gdb-5cc80db34dcbe944fe7b480c9841f309c0cf6e96.tar.gz
gdb-5cc80db34dcbe944fe7b480c9841f309c0cf6e96.tar.bz2
2010-05-15 Michael Snyder <msnyder@vmware.com>
* objc-lang.c: White space. * objfiles.c: White space. * observer.c: White space. * osabi.c: White space. * osdata.c: White space.
Diffstat (limited to 'gdb/osdata.c')
-rw-r--r--gdb/osdata.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/osdata.c b/gdb/osdata.c
index 3317b6f..3440b4e 100644
--- a/gdb/osdata.c
+++ b/gdb/osdata.c
@@ -83,6 +83,7 @@ osdata_start_item (struct gdb_xml_parser *parser,
{
struct osdata_parsing_data *data = user_data;
struct osdata_item item = { NULL };
+
VEC_safe_push (osdata_item_s, data->osdata->items, &item);
}
@@ -95,6 +96,7 @@ osdata_start_column (struct gdb_xml_parser *parser,
{
struct osdata_parsing_data *data = user_data;
const char *name = VEC_index (gdb_xml_value_s, attributes, 0)->value;
+
data->property_name = xstrdup (name);
}
@@ -123,6 +125,7 @@ static void
clear_parsing_data (void *p)
{
struct osdata_parsing_data *data = p;
+
osdata_free (data->osdata);
data->osdata = NULL;
xfree (data->property_name);
@@ -192,6 +195,7 @@ osdata_item_clear (struct osdata_item *item)
{
struct osdata_column *col;
int ix;
+
for (ix = 0;
VEC_iterate (osdata_column_s, item->columns,
ix, col);
@@ -215,6 +219,7 @@ osdata_free (struct osdata *osdata)
{
struct osdata_item *item;
int ix;
+
for (ix = 0;
VEC_iterate (osdata_item_s, osdata->items,
ix, item);
@@ -230,6 +235,7 @@ static void
osdata_free_cleanup (void *arg)
{
struct osdata *osdata = arg;
+
osdata_free (osdata);
}
@@ -244,6 +250,7 @@ get_osdata (const char *type)
{
struct osdata *osdata = NULL;
char *xml = target_get_osdata (type);
+
if (xml)
{
struct cleanup *old_chain = make_cleanup (xfree, xml);
@@ -309,6 +316,7 @@ info_osdata_command (char *type, int from_tty)
{
struct osdata_column *col;
int ix;
+
for (ix = 0;
VEC_iterate (osdata_column_s, last->columns,
ix, col);
@@ -323,6 +331,7 @@ info_osdata_command (char *type, int from_tty)
{
struct osdata_item *item;
int ix_items;
+
for (ix_items = 0;
VEC_iterate (osdata_item_s, osdata->items,
ix_items, item);