diff options
author | Michael Snyder <msnyder@vmware.com> | 2004-01-07 19:14:45 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2004-01-07 19:14:45 +0000 |
commit | 15255275af6b47151f37826e17e335210c1cd18e (patch) | |
tree | 987128b25b1b9b346eaf347076f6cd8a5cc40273 /gdb/tracepoint.c | |
parent | d9296b18250dea5e245fb863cd6bfb97e80960a1 (diff) | |
download | gdb-15255275af6b47151f37826e17e335210c1cd18e.zip gdb-15255275af6b47151f37826e17e335210c1cd18e.tar.gz gdb-15255275af6b47151f37826e17e335210c1cd18e.tar.bz2 |
2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
* tracepoint.c (validate_actionline): Fix segv at EOF
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 6e33841..713bf14 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -914,6 +914,10 @@ validate_actionline (char **line, struct tracepoint *t) struct cleanup *old_chain = NULL; char *p; + /* if EOF is typed, *line is NULL */ + if (*line == NULL) + return END; + for (p = *line; isspace ((int) *p);) p++; |