diff options
author | Pedro Alves <palves@redhat.com> | 2011-09-05 15:46:34 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-09-05 15:46:34 +0000 |
commit | f1d90504dc71a1e66a1f17c71ec1cef2e594682d (patch) | |
tree | f1bb5d3f74ad2165b594f46a24ca21099d474fcf /gdb | |
parent | 0f641c01197d8f614a1ecb4a54c7d508f500367a (diff) | |
download | gdb-f1d90504dc71a1e66a1f17c71ec1cef2e594682d.zip gdb-f1d90504dc71a1e66a1f17c71ec1cef2e594682d.tar.gz gdb-f1d90504dc71a1e66a1f17c71ec1cef2e594682d.tar.bz2 |
2011-09-05 Pedro Alves <pedro@codesourcery.com>
PR cli/13110
* infrun.c (fetch_inferior_event): Check if there's a selected
thread before checking if the selected thread is executing.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/infrun.c | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9f06267..80fc406 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2011-09-05 Pedro Alves <pedro@codesourcery.com> + PR cli/13110 + + * infrun.c (fetch_inferior_event): Check if there's a selected + thread before checking if the selected thread is executing. + +2011-09-05 Pedro Alves <pedro@codesourcery.com> + * inf-loop.c (execute_command): Don't check if the current thread if running before synchronously waiting for command completion. * infrun.c (fetch_inferior_event): Handle "set exec-done-display" diff --git a/gdb/infrun.c b/gdb/infrun.c index fee302c..8846cdf 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2749,7 +2749,9 @@ fetch_inferior_event (void *client_data) switches threads anyway). If we didn't do this, a spurious delayed event in all-stop mode would make the user lose the selected frame. */ - if (non_stop || is_executing (inferior_ptid)) + if (non_stop + || (!ptid_equal (inferior_ptid, null_ptid) + && is_executing (inferior_ptid))) registers_changed (); make_cleanup_restore_integer (&execution_direction); |