Remote non-stop mode support.
[deliverable/binutils-gdb.git] / gdb / utils.c
index ce05909fc7b3ae275111836c0fe9ece23ade01c4..3d3539021125390f7a15d0b2f78f17847d2829ca 100644 (file)
@@ -3349,3 +3349,17 @@ ldirname (const char *filename)
   dirname[base - filename] = '\0';
   return dirname;
 }
+
+/* Call libiberty's buildargv, and return the result.
+   If buildargv fails due to out-of-memory, call nomem.
+   Therefore, the returned value is guaranteed to be non-NULL,
+   unless the parameter itself is NULL.  */
+
+char **
+gdb_buildargv (const char *s)
+{
+  char **argv = buildargv (s);
+  if (s != NULL && argv == NULL)
+    nomem (0);
+  return argv;
+}
This page took 0.026121 seconds and 4 git commands to generate.