This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] infcmd.c (attach_command): Assert args is not null.
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 04 Mar 2011 14:59:58 -0800
- Subject: [RFA] infcmd.c (attach_command): Assert args is not null.
OK?
2011-03-04 Michael Snyder <msnyder@vmware.com>
* infcmd.c (attach_command): Assert args is not null.
Index: infcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/infcmd.c,v
retrieving revision 1.278
diff -u -p -u -p -r1.278 infcmd.c
--- infcmd.c 28 Feb 2011 23:37:07 -0000 1.278
+++ infcmd.c 4 Mar 2011 22:56:22 -0000
@@ -2506,6 +2506,7 @@ attach_command (char *args, int from_tty
/* sync_execution mode. Wait for stop. */
struct attach_command_continuation_args *a;
+ gdb_assert (args);
a = xmalloc (sizeof (*a));
a->args = xstrdup (args);
a->from_tty = from_tty;