summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-04-11 13:17:05 +0000
committerTristan Gingold <gingold@adacore.com>2012-04-11 13:17:05 +0000
commitd987a26657b657a7b09a949d450d905bb299629a (patch)
treef66ab178a2e0463ecbbb34c47aef2e696ee722c2
parent016b7430857b376e98b63c152e197330af212f49 (diff)
downloadbinutils-gdb-d987a26657b657a7b09a949d450d905bb299629a.tar.gz
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.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/darwin-nat.c13
2 files changed, 15 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 20fd5735b3b..1d65759d129 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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.
+
+2012-04-11 Tristan Gingold <gingold@adacore.com>
+
* i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
warning.
@@ -235,7 +241,7 @@
2012-04-02 Tristan Gingold <gingold@adacore.com>
PR gdb/13901
- * darwin-nat.c (darwin_execvp): Sey binary preference.
+ * darwin-nat.c (darwin_execvp): Set binary preference.
2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index df2b7611421..3c5ddbef9b4 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;