Ticket #39916: arm-elf-gdb-patch1.patch

File arm-elf-gdb-patch1.patch, 1.1 KB (added by fhgwright (Fred Wright), 8 years ago)
  • Portfile

     
    44
    55name                    arm-elf-gdb
    66version                 7.1
     7revision                1
    78categories              cross devel
    89maintainers             koostech.com:billy openmaintainer
    910license                 GPL-3+
     
    2223
    2324set crossgdb-target arm-elf
    2425
     26patchfiles              patch-armsupp.c.diff
     27
    2528# Build in a different directory, as advised in the README file.
    2629pre-configure   {
    2730        file mkdir "${workpath}/build"
  • files/patch-armsupp.c.diff

     
     1--- sim/arm/armsupp.c.orig      2005-05-12 00:36:58.000000000 -0700
     2+++ sim/arm/armsupp.c   2015-11-22 20:07:49.000000000 -0800
     3@@ -636,7 +636,7 @@
     4   if (! CP_ACCESS_ALLOWED (state, CPNum))
     5     {
     6       ARMul_UndefInstr (state, instr);
     7-      return;
     8+      return result;
     9     }
     10 
     11   cpab = (state->MRC[CPNum]) (state, ARMul_FIRST, instr, &result);