PR breakpoints/12217
* breakpoint.c (is_marker_spec): Check for NULL.
+2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ PR breakpoints/12217
+
+ * breakpoint.c (is_marker_spec): Check for NULL.
+
2010-11-25 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (dwarf2_const_value_data): Never sign extend.
/* Assuming we're creating a static tracepoint, does S look like a
static tracepoint marker spec ("-m MARKER_ID")? */
#define is_marker_spec(s) \
- (strncmp (s, "-m", 2) == 0 && ((s)[2] == ' ' || (s)[2] == '\t'))
+ (s != NULL && strncmp (s, "-m", 2) == 0 && ((s)[2] == ' ' || (s)[2] == '\t'))
/* A reference-counted struct command_line. This lets multiple
breakpoints share a single command list. */