Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/scripts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3f19bd9
Choose a base ref
...
head repository: m-labs/scripts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2de01de
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Nov 14, 2011

  1. lm32 toolchain: update gdb to 7.3.1

    Xiangfu Liu committed Nov 14, 2011

    Unverified

    The signing certificate or its chain could not be verified.
    Copy the full SHA
    6c15eec View commit details
  2. add gdb bit-ism-and-more-sloppy-macros.patch by werner

    Xiangfu Liu committed Nov 14, 2011

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2de01de View commit details
5 changes: 2 additions & 3 deletions compile-lm32-rtems/Makefile
Original file line number Diff line number Diff line change
@@ -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 $@

Original file line number Diff line number Diff line change
@@ -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
{

This file was deleted.