From 465aa55cea05172e9e8da8facf3f7107c722c0a2 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Wed, 14 Apr 2010 10:58:11 +0200
Subject: [PATCH] debugger: add a patch to solve the 'Cannot step on Maemo'
 problem.

This patch needs to be applied to any gdb newer then Sep 17, 2007
before using it for Maemo.
---
 .../patches/gdb-stepping-for-maemo.patch        | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 share/qtcreator/patches/gdb-stepping-for-maemo.patch

diff --git a/share/qtcreator/patches/gdb-stepping-for-maemo.patch b/share/qtcreator/patches/gdb-stepping-for-maemo.patch
new file mode 100644
index 00000000000..491bf8b1788
--- /dev/null
+++ b/share/qtcreator/patches/gdb-stepping-for-maemo.patch
@@ -0,0 +1,17 @@
+--- a/gdb/infrun.c
++++ b/gdb/infrun.c
+@@ -4126,7 +4127,9 @@ infrun: not switching back to stepped thread, it has vanished\n");
+ 
+   if (execution_direction != EXEC_REVERSE
+       && ecs->event_thread->step_over_calls == STEP_OVER_UNDEBUGGABLE
+-      && in_solib_dynsym_resolve_code (stop_pc))
++      && in_solib_dynsym_resolve_code (stop_pc)
++      && !(ecs->event_thread->step_range_start > 1
++        && in_solib_dynsym_resolve_code (ecs->event_thread->step_range_start)))
+     {
+       CORE_ADDR pc_after_resolver =
+    gdbarch_skip_solib_resolver (gdbarch, stop_pc);
+
+------------------------------------------------------------------------
+
+NOTE: This relates to http://sourceware.org/bugzilla/show_bug.cgi?id=11497
-- 
GitLab