This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]