Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: m-labs/scripts
base: 3f19bd9
...
head fork: m-labs/scripts
compare: 2de01de
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
5 compile-lm32-rtems/Makefile
@@ -27,7 +27,7 @@ WGET=wget -c -O
BINUTILS_VERSION=2.21
GCC_CORE_VERSION=4.5.3
NEWLIB_VERSION=1.19.0
-GDB_VERSION=7.2
+GDB_VERSION=7.3.1
GMP_VERSION=4.3.2
MPC_VERSION=0.8.1
MPFR_VERSION=2.4.2
@@ -43,7 +43,7 @@ MPFR=mpfr-$(MPFR_VERSION).tar.bz2
BINUTILS_PATCH=binutils-$(BINUTILS_VERSION)-rtems$(RTEMS_VERSION)-20110107.diff
GCC_CORE_PATCH=gcc-core-$(GCC_CORE_VERSION)-rtems$(RTEMS_VERSION)-20110905.diff
NEWLIB_PATCH=newlib-$(NEWLIB_VERSION)-rtems$(RTEMS_VERSION)-20110724.diff
-GDB_PATCH=gdb-$(GDB_VERSION)-rtems$(RTEMS_VERSION)-20100907.diff
+GDB_PATCH=gdb-$(GDB_VERSION)-rtems$(RTEMS_VERSION)-20110905.diff
DL=$(if $(wildcard ../dl/.),../dl,dl)
@@ -95,7 +95,6 @@ gcc-$(GCC_CORE_VERSION)/newlib: .unzip.ok
(cd newlib-$(NEWLIB_VERSION); cat ../$(RTEMS_PATCHES_DIR)/$(NEWLIB_PATCH) | patch -p1)
(cd gdb-$(GDB_VERSION); \
cat ../$(RTEMS_PATCHES_DIR)/$(GDB_PATCH) | patch -p1; \
- cat ../$(MM1_PATCHES_DIR)/gdb-remote-target-interrupt-before-ack.patch | patch -p1; \
)
touch $@
View
21 compile-lm32-rtems/milkymist-one-patches/gdb-7.3.1-32-bit-ism-and-more-sloppy-macros.patch
@@ -0,0 +1,21 @@
+diff --git a/gdb/lm32-tdep.c b/gdb/lm32-tdep.c
+index d83c6a4..f75a9d2 100644
+--- a/gdb/lm32-tdep.c
++++ b/gdb/lm32-tdep.c
+@@ -40,11 +40,11 @@
+ #include "gdb_string.h"
+
+ /* Macros to extract fields from an instruction. */
+-#define LM32_OPCODE(insn) ((insn >> 26) & 0x3f)
+-#define LM32_REG0(insn) ((insn >> 21) & 0x1f)
+-#define LM32_REG1(insn) ((insn >> 16) & 0x1f)
+-#define LM32_REG2(insn) ((insn >> 11) & 0x1f)
+-#define LM32_IMM16(insn) ((((long)insn & 0xffff) << 16) >> 16)
++#define LM32_OPCODE(insn) (((insn) >> 26) & 0x3f)
++#define LM32_REG0(insn) (((insn) >> 21) & 0x1f)
++#define LM32_REG1(insn) (((insn) >> 16) & 0x1f)
++#define LM32_REG2(insn) (((insn) >> 11) & 0x1f)
++#define LM32_IMM16(insn) ((long) (int16_t) (insn))
+
+ struct gdbarch_tdep
+ {
View
20 compile-lm32-rtems/milkymist-one-patches/gdb-remote-target-interrupt-before-ack.patch
@@ -1,20 +0,0 @@
-diff --git a/gdb/remote.c b/gdb/remote.c
-index e03a611..6c7a6d2 100644
---- a/gdb/remote.c
-+++ b/gdb/remote.c
-@@ -3136,12 +3136,12 @@ remote_start_remote (struct ui_out *uiout, void *opaque)
-
- immediate_quit++; /* Allow user to interrupt it. */
-
-- /* Ack any packet which the remote side has already sent. */
-- serial_write (remote_desc, "+", 1);
--
- if (interrupt_on_connect)
- send_interrupt_sequence ();
-
-+ /* Ack any packet which the remote side has already sent. */
-+ serial_write (remote_desc, "+", 1);
-+
- /* The first packet we send to the target is the optional "supported
- packets" request. If the target can answer this, it will tell us
- which later probes to skip. */

No commit comments for this range

Something went wrong with that request. Please try again.