diff options
author | Tristan Gingold <gingold@adacore.com> | 2012-04-11 13:17:05 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2012-04-11 13:17:05 +0000 |
commit | d987a26657b657a7b09a949d450d905bb299629a (patch) | |
tree | f66ab178a2e0463ecbbb34c47aef2e696ee722c2 /gdb/darwin-nat.c | |
parent | 016b7430857b376e98b63c152e197330af212f49 (diff) | |
download | gdb-d987a26657b657a7b09a949d450d905bb299629a.zip gdb-d987a26657b657a7b09a949d450d905bb299629a.tar.gz gdb-d987a26657b657a7b09a949d450d905bb299629a.tar.bz2 |
2012-04-11 Tristan Gingold <gingold@adacore.com>
PR gdb/13901
* darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
in case of change.
Diffstat (limited to 'gdb/darwin-nat.c')
-rw-r--r-- | gdb/darwin-nat.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index df2b761..3c5ddbe 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -705,11 +705,14 @@ darwin_resume_thread (struct inferior *inf, darwin_thread_t *thread, thread->signaled = 1; } - /* Set single step. */ - inferior_debug (4, _("darwin_set_sstep (thread=%x, enable=%d)\n"), - thread->gdb_port, step); - darwin_set_sstep (thread->gdb_port, step); - thread->single_step = step; + /* Set or reset single step. */ + if (step != thread->single_step) + { + inferior_debug (4, _("darwin_set_sstep (thread=%x, enable=%d)\n"), + thread->gdb_port, step); + darwin_set_sstep (thread->gdb_port, step); + thread->single_step = step; + } darwin_send_reply (inf, thread); thread->msg_state = DARWIN_RUNNING; |