Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 3 files changed
  • 0 comments
  • 1 contributor
5  compile-lm32-rtems/Makefile
@@ -27,7 +27,7 @@ WGET=wget -c -O
27 27
 BINUTILS_VERSION=2.21
28 28
 GCC_CORE_VERSION=4.5.3
29 29
 NEWLIB_VERSION=1.19.0
30  
-GDB_VERSION=7.2
  30
+GDB_VERSION=7.3.1
31 31
 GMP_VERSION=4.3.2
32 32
 MPC_VERSION=0.8.1
33 33
 MPFR_VERSION=2.4.2
@@ -43,7 +43,7 @@ MPFR=mpfr-$(MPFR_VERSION).tar.bz2
43 43
 BINUTILS_PATCH=binutils-$(BINUTILS_VERSION)-rtems$(RTEMS_VERSION)-20110107.diff
44 44
 GCC_CORE_PATCH=gcc-core-$(GCC_CORE_VERSION)-rtems$(RTEMS_VERSION)-20110905.diff
45 45
 NEWLIB_PATCH=newlib-$(NEWLIB_VERSION)-rtems$(RTEMS_VERSION)-20110724.diff
46  
-GDB_PATCH=gdb-$(GDB_VERSION)-rtems$(RTEMS_VERSION)-20100907.diff
  46
+GDB_PATCH=gdb-$(GDB_VERSION)-rtems$(RTEMS_VERSION)-20110905.diff
47 47
 
48 48
 DL=$(if $(wildcard ../dl/.),../dl,dl)
49 49
 
@@ -95,7 +95,6 @@ gcc-$(GCC_CORE_VERSION)/newlib: .unzip.ok
95 95
 	(cd newlib-$(NEWLIB_VERSION); cat ../$(RTEMS_PATCHES_DIR)/$(NEWLIB_PATCH) | patch -p1)
96 96
 	(cd gdb-$(GDB_VERSION); \
97 97
 	 cat ../$(RTEMS_PATCHES_DIR)/$(GDB_PATCH) | patch -p1; \
98  
-	 cat ../$(MM1_PATCHES_DIR)/gdb-remote-target-interrupt-before-ack.patch | patch -p1; \
99 98
 	)
100 99
 	touch $@
101 100
 
21  compile-lm32-rtems/milkymist-one-patches/gdb-7.3.1-32-bit-ism-and-more-sloppy-macros.patch
... ...
@@ -0,0 +1,21 @@
  1
+diff --git a/gdb/lm32-tdep.c b/gdb/lm32-tdep.c
  2
+index d83c6a4..f75a9d2 100644
  3
+--- a/gdb/lm32-tdep.c
  4
++++ b/gdb/lm32-tdep.c
  5
+@@ -40,11 +40,11 @@
  6
+ #include "gdb_string.h"
  7
+ 
  8
+ /* Macros to extract fields from an instruction.  */
  9
+-#define LM32_OPCODE(insn)       ((insn >> 26) & 0x3f)
  10
+-#define LM32_REG0(insn)         ((insn >> 21) & 0x1f)
  11
+-#define LM32_REG1(insn)         ((insn >> 16) & 0x1f)
  12
+-#define LM32_REG2(insn)         ((insn >> 11) & 0x1f)
  13
+-#define LM32_IMM16(insn)        ((((long)insn & 0xffff) << 16) >> 16)
  14
++#define LM32_OPCODE(insn)       (((insn) >> 26) & 0x3f)
  15
++#define LM32_REG0(insn)         (((insn) >> 21) & 0x1f)
  16
++#define LM32_REG1(insn)         (((insn) >> 16) & 0x1f)
  17
++#define LM32_REG2(insn)         (((insn) >> 11) & 0x1f)
  18
++#define LM32_IMM16(insn)        ((long) (int16_t) (insn))
  19
+ 
  20
+ struct gdbarch_tdep
  21
+ {
20  compile-lm32-rtems/milkymist-one-patches/gdb-remote-target-interrupt-before-ack.patch
... ...
@@ -1,20 +0,0 @@
1  
-diff --git a/gdb/remote.c b/gdb/remote.c
2  
-index e03a611..6c7a6d2 100644
3  
---- a/gdb/remote.c
4  
-+++ b/gdb/remote.c
5  
-@@ -3136,12 +3136,12 @@ remote_start_remote (struct ui_out *uiout, void *opaque)
6  
- 
7  
-   immediate_quit++;		/* Allow user to interrupt it.  */
8  
- 
9  
--  /* Ack any packet which the remote side has already sent.  */
10  
--  serial_write (remote_desc, "+", 1);
11  
--
12  
-   if (interrupt_on_connect)
13  
-     send_interrupt_sequence ();
14  
- 
15  
-+  /* Ack any packet which the remote side has already sent.  */
16  
-+  serial_write (remote_desc, "+", 1);
17  
-+
18  
-   /* The first packet we send to the target is the optional "supported
19  
-      packets" request.  If the target can answer this, it will tell us
20  
-      which later probes to skip.  */

No commit comments for this range

Something went wrong with that request. Please try again.