mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 00:32:30 +08:00
* 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.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
|
||||||
|
|
||||||
|
* extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
|
||||||
|
NULL pointer.
|
||||||
|
|
||||||
2014-03-21 Pedro Alves <palves@redhat.com>
|
2014-03-21 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* infrun.c (normal_stop): Extend comment.
|
* infrun.c (normal_stop): Extend comment.
|
||||||
|
@ -342,7 +342,8 @@ eval_ext_lang_from_control_command (struct command_line *cmd)
|
|||||||
{
|
{
|
||||||
if (extlang->cli_control_type == cmd->control_type)
|
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);
|
extlang->ops->eval_from_control_command (extlang, cmd);
|
||||||
return;
|
return;
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2014-03-22 Doug Evans <xdje42@gmail.com>
|
||||||
|
|
||||||
|
* gdb.python/python.exp (python not supported): Verify multi-line
|
||||||
|
python command issues an error.
|
||||||
|
|
||||||
2014-03-21 Maciej W. Rozycki <macro@codesourcery.com>
|
2014-03-21 Maciej W. Rozycki <macro@codesourcery.com>
|
||||||
|
|
||||||
* gdb.threads/thread-specific.exp: Handle the lack of usable
|
* gdb.threads/thread-specific.exp: Handle the lack of usable
|
||||||
|
@ -41,6 +41,13 @@ gdb_test_multiple "python print (23)" "verify python support" {
|
|||||||
gdb_test "source $srcdir/$subdir/source2.py" \
|
gdb_test "source $srcdir/$subdir/source2.py" \
|
||||||
"Error in sourced command file:.*" \
|
"Error in sourced command file:.*" \
|
||||||
"source source2.py when python disabled"
|
"source source2.py when python disabled"
|
||||||
|
|
||||||
|
# Verify multi-line python commands cause an error.
|
||||||
|
gdb_py_test_multiple "multi-line python command" \
|
||||||
|
"python" "" \
|
||||||
|
"print (23)" "" \
|
||||||
|
"end" "not supported.*"
|
||||||
|
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
-re "$gdb_prompt $" {}
|
-re "$gdb_prompt $" {}
|
||||||
|
Reference in New Issue
Block a user