[gdb/testsuite] Stabilize gdb-caching-proc.exp test order
[deliverable/binutils-gdb.git] / gdb / typeprint.c
index 7a44dbdb31386e9313f73cb4d0dfc35f0e5de3bb..c87f6d13e02ec5aa191027ce3f5795c6352df639 100644 (file)
@@ -325,9 +325,8 @@ typedef_hash_table::find_global_typedef (const struct type_print_options *flags,
 
   if (applied != NULL)
     {
-      new_tf->name
-       = (const char *) obstack_copy0 (&flags->global_typedefs->m_storage,
-                                       applied, strlen (applied));
+      new_tf->name = obstack_strdup (&flags->global_typedefs->m_storage,
+                                    applied);
       xfree (applied);
     }
 
@@ -817,7 +816,7 @@ Available FLAGS are:\n\
   /M    print methods defined in a class\n\
   /t    do not print typedefs defined in a class\n\
   /T    print typedefs defined in a class\n\
-  /o    print offsets and sizes of fields in a struct (like pahole)\n"));
+  /o    print offsets and sizes of fields in a struct (like pahole)"));
   set_cmd_completer (c, expression_completer);
 
   c = add_com ("whatis", class_vars, whatis_command,
This page took 0.02465 seconds and 4 git commands to generate.