diff options
author | Doug Evans <xdje42@gmail.com> | 2014-03-22 02:44:39 -0400 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-03-22 02:44:39 -0400 |
commit | feef67abfaf328082c445b9d25696d44551478d1 (patch) | |
tree | a5e609759679711611a336ac269232e5e2b13023 /gdb/extension.c | |
parent | ecebef6a9acbca2f98e1ed64b986d792c6933ec5 (diff) | |
download | gdb-feef67abfaf328082c445b9d25696d44551478d1.zip gdb-feef67abfaf328082c445b9d25696d44551478d1.tar.gz gdb-feef67abfaf328082c445b9d25696d44551478d1.tar.bz2 |
* extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
NULL pointer.
testsuite/
* gdb.python/python.exp (python not supported): Verify multi-line
python command issues an error.
Diffstat (limited to 'gdb/extension.c')
-rw-r--r-- | gdb/extension.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/extension.c b/gdb/extension.c index c2f502b..1146cc7 100644 --- a/gdb/extension.c +++ b/gdb/extension.c @@ -342,7 +342,8 @@ eval_ext_lang_from_control_command (struct command_line *cmd) { if (extlang->cli_control_type == cmd->control_type) { - if (extlang->ops->eval_from_control_command != NULL) + if (extlang->ops != NULL + && extlang->ops->eval_from_control_command != NULL) { extlang->ops->eval_from_control_command (extlang, cmd); return; |