2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
PR breakpoints/12217 * breakpoint.c (is_marker_spec): Check for NULL.
This commit is contained in:
parent
aad5de7791
commit
f5a8e22b7e
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
|
||||||
|
|
||||||
|
PR breakpoints/12217
|
||||||
|
|
||||||
|
* breakpoint.c (is_marker_spec): Check for NULL.
|
||||||
|
|
||||||
2010-11-25 Pedro Alves <pedro@codesourcery.com>
|
2010-11-25 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* breakpoint.h: No longer include python.h or python-internal.h.
|
* breakpoint.h: No longer include python.h or python-internal.h.
|
||||||
|
|
|
@ -222,7 +222,7 @@ static void trace_pass_command (char *, int);
|
||||||
/* Assuming we're creating a static tracepoint, does S look like a
|
/* Assuming we're creating a static tracepoint, does S look like a
|
||||||
static tracepoint marker spec ("-m MARKER_ID")? */
|
static tracepoint marker spec ("-m MARKER_ID")? */
|
||||||
#define is_marker_spec(s) \
|
#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
|
/* A reference-counted struct command_line. This lets multiple
|
||||||
breakpoints share a single command list. */
|
breakpoints share a single command list. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue