ODR warnings for "struct insn_info"
[binutils-gdb.git] / gdb / osdata.c
index 2ff0f520b0b9e580490f5b3443b03755c2334403..188eb10845907d31a2f2e92b410df057c8ae459f 100644 (file)
@@ -1,6 +1,6 @@
 /* Routines for handling XML generic OS data provided by target.
 
-   Copyright (C) 2008-2021 Free Software Foundation, Inc.
+   Copyright (C) 2008-2022 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -273,8 +273,7 @@ info_osdata (const char *type)
                 continue;
 
               snprintf (col_name, 32, "col%d", ix_cols);
-              uiout->field_string (col_name,
-                                   item.columns[ix_cols].value.c_str ());
+              uiout->field_string (col_name, item.columns[ix_cols].value);
             }
         }