Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3 move the GDB_MACHINE_ARCH setting into a separ...



details:   https://anonhg.NetBSD.org/src/rev/8ac4833b0fed
branches:  trunk
changeset: 818502:8ac4833b0fed
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Oct 16 04:36:51 2016 +0000

description:
move the GDB_MACHINE_ARCH setting into a separate file so tools can
access it.  modify it such that it's "arm" or "armeb" for all arm,
but only in new gdb, not gdb.old (avoid changing gdb.old as much
as possible now.)

diffstat:

 external/gpl3/gdb.old/Makefile.gdb_arch |  3 +++
 external/gpl3/gdb.old/Makefile.inc      |  4 ++--
 external/gpl3/gdb/Makefile.gdb_arch     |  3 +++
 external/gpl3/gdb/Makefile.inc          |  4 ++--
 4 files changed, 10 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r d7f9c5fcbb64 -r 8ac4833b0fed external/gpl3/gdb.old/Makefile.gdb_arch
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb.old/Makefile.gdb_arch   Sun Oct 16 04:36:51 2016 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD#
+
+GDB_MACHINE_ARCH=      ${MACHINE_ARCH:C/armv[4-7]/arm/}
diff -r d7f9c5fcbb64 -r 8ac4833b0fed external/gpl3/gdb.old/Makefile.inc
--- a/external/gpl3/gdb.old/Makefile.inc        Sun Oct 16 04:30:04 2016 +0000
+++ b/external/gpl3/gdb.old/Makefile.inc        Sun Oct 16 04:36:51 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.7 2016/10/12 15:36:05 christos Exp $
+# $NetBSD: Makefile.inc,v 1.8 2016/10/16 04:36:51 mrg Exp $
 
 USE_LIBEDIT=no
 USE_TUI=yes
@@ -6,7 +6,7 @@
 WARNS?=                0
 CPPFLAGS+=     -D_KERNTYPES
 
-GDB_MACHINE_ARCH=      ${MACHINE_ARCH:C/armv[4-7]/arm/}
+.include "Makefile.gdb_arch"
 
 CWARNFLAGS.clang+=     -Wno-unused-value -Wno-conversion \
                        -Wno-switch-enum -Wno-parentheses -Wno-comment \
diff -r d7f9c5fcbb64 -r 8ac4833b0fed external/gpl3/gdb/Makefile.gdb_arch
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/Makefile.gdb_arch       Sun Oct 16 04:36:51 2016 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD#
+
+GDB_MACHINE_ARCH=      ${MACHINE_ARCH:C/^e//:C/e?armv[4-7]h?f?/arm/}
diff -r d7f9c5fcbb64 -r 8ac4833b0fed external/gpl3/gdb/Makefile.inc
--- a/external/gpl3/gdb/Makefile.inc    Sun Oct 16 04:30:04 2016 +0000
+++ b/external/gpl3/gdb/Makefile.inc    Sun Oct 16 04:36:51 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.10 2016/01/23 23:02:31 christos Exp $
+# $NetBSD: Makefile.inc,v 1.11 2016/10/16 04:36:52 mrg Exp $
 
 USE_LIBEDIT=no
 USE_TUI=yes
@@ -6,7 +6,7 @@
 WARNS?=                0
 CPPFLAGS+=     -D_KERNTYPES
 
-GDB_MACHINE_ARCH=      ${MACHINE_ARCH:C/armv[4-7]/arm/}
+.include "Makefile.gdb_arch"
 
 CWARNFLAGS.clang+=     -Wno-unused-value -Wno-conversion \
                        -Wno-switch-enum -Wno-parentheses -Wno-comment \



Home | Main Index | Thread Index | Old Index