aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/gdb/patches/750-debian_sparc-singlestep.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-13 20:51:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-13 20:51:49 +0000
commit5b2f37e0cd7ef98a06611fb42b947d8984f0e12a (patch)
treed993cf48b4d89166701fe2f33976389d7634235d /toolchain/gdb/patches/750-debian_sparc-singlestep.patch
parent79c3b44dbfbd6fb819a0daf64c2b797c29b04d85 (diff)
parent4b8e77121f1bcca81025c3fcb7b87bf869bef7f9 (diff)
downloadupstream-5b2f37e0cd7ef98a06611fb42b947d8984f0e12a.tar.gz
upstream-5b2f37e0cd7ef98a06611fb42b947d8984f0e12a.tar.bz2
upstream-5b2f37e0cd7ef98a06611fb42b947d8984f0e12a.zip
finally move buildroot-ng to trunk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5059 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/gdb/patches/750-debian_sparc-singlestep.patch')
-rw-r--r--toolchain/gdb/patches/750-debian_sparc-singlestep.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/toolchain/gdb/patches/750-debian_sparc-singlestep.patch b/toolchain/gdb/patches/750-debian_sparc-singlestep.patch
new file mode 100644
index 0000000000..904883c2fc
--- /dev/null
+++ b/toolchain/gdb/patches/750-debian_sparc-singlestep.patch
@@ -0,0 +1,37 @@
+Status: submitted for comments
+
+2004-11-13 Daniel Jacobowitz <dan@debian.org>
+
+ * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
+
+Index: gdb-6.3/gdb/sparc-tdep.c
+===================================================================
+--- gdb-6.3.orig/gdb/sparc-tdep.c 2004-06-06 22:02:55.000000000 -0400
++++ gdb-6.3/gdb/sparc-tdep.c 2004-11-13 17:06:05.000000000 -0500
+@@ -1026,10 +1026,10 @@
+
+ if (insert_breakpoints_p)
+ {
+- CORE_ADDR pc;
++ CORE_ADDR pc, orig_npc;
+
+ pc = sparc_address_from_register (tdep->pc_regnum);
+- npc = sparc_address_from_register (tdep->npc_regnum);
++ orig_npc = npc = sparc_address_from_register (tdep->npc_regnum);
+
+ /* Analyze the instruction at PC. */
+ nnpc = sparc_analyze_control_transfer (pc, &npc);
+@@ -1039,9 +1039,10 @@
+ target_insert_breakpoint (nnpc, nnpc_save);
+
+ /* Assert that we have set at least one breakpoint, and that
+- they're not set at the same spot. */
+- gdb_assert (npc != 0 || nnpc != 0);
+- gdb_assert (nnpc != npc);
++ they're not set at the same spot - unless we're going
++ from here straight to NULL, i.e. a call or jump to 0. */
++ gdb_assert (npc != 0 || nnpc != 0 || orig_npc == 0);
++ gdb_assert (nnpc != npc || orig_npc == 0);
+ }
+ else
+ {