summaryrefslogtreecommitdiff
path: root/devel/avr-gdb/files/patch-aa
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2002-09-10 08:52:42 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2002-09-10 08:52:42 +0000
commit9998b9f45d14d336a986e091c97bb8eb18e2397b (patch)
tree5d13bab88f107dbba1d49c3be1dfbf53e14471bc /devel/avr-gdb/files/patch-aa
parentPkg-plist should reflect that FvwmGtk is installed only when GTK is detected. (diff)
Complete the support for the AVR microcontroller toolchain: a port of
GDB to the AVR.
Notes
Notes: svn path=/head/; revision=66027
Diffstat (limited to 'devel/avr-gdb/files/patch-aa')
-rw-r--r--devel/avr-gdb/files/patch-aa22
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/avr-gdb/files/patch-aa b/devel/avr-gdb/files/patch-aa
new file mode 100644
index 000000000000..4534aea5ece2
--- /dev/null
+++ b/devel/avr-gdb/files/patch-aa
@@ -0,0 +1,22 @@
+Index: gdb/avr-tdep.c
+===================================================================
+RCS file: /cvs/src/src/gdb/avr-tdep.c,v
+retrieving revision 1.4
+diff -u -p -r1.4 avr-tdep.c
+--- gdb/avr-tdep.c 17 Jun 2002 23:32:27 -0000 1.4
++++ gdb/avr-tdep.c 19 Jul 2002 18:33:30 -0000
+@@ -995,7 +995,12 @@ avr_skip_prologue (CORE_ADDR pc)
+ {
+ sal = find_pc_line (func_addr, 0);
+
+- if (sal.line != 0 && sal.end < func_end)
++ /* troth/2002-70-19: For some very simple functions, gcc doesn't
++ generate a prologue and the sal.end ends up being the insn (2 bytes)
++ before func_end (the address of the next func). By adjusting
++ func_end, we can catch these functions and return the correct pc. */
++
++ if (sal.line != 0 && sal.end < (func_end-2))
+ return sal.end;
+ }
+
+