From patchwork Fri Oct 6 13:35:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 23376 Received: (qmail 92842 invoked by alias); 6 Oct 2017 13:35:46 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 92829 invoked by uid 89); 6 Oct 2017 13:35:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:74.125.82.65, Hx-spam-relays-external:74.125.82.65, Hx-languages-length:2582 X-HELO: mail-wm0-f65.google.com Received: from mail-wm0-f65.google.com (HELO mail-wm0-f65.google.com) (74.125.82.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Oct 2017 13:35:44 +0000 Received: by mail-wm0-f65.google.com with SMTP id i124so7623763wmf.3 for ; Fri, 06 Oct 2017 06:35:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=BjQUS79KZr3EBGvPe+SjmIXlXNyfkmoROn3J+U3Jwpg=; b=IV1uCHf1figgc2g0bcL9u4VPLiAAnColvyRlhvvQthDiRG80L/tnzSuTrkTgdv7bfR UICKdKpZV/crZcp1o+50BENQpJc+LeQag5CbBznEP28WGoNh/gqAdCtziRtZQeVTKYqq D+dIwUiHW1+2bflZ7EfoK+hZGoeZm+tT+PwHqtioOcWRFAIVGXSaGnTUpR8S8FPGbkQx MspmQlHfXlaSZtBCM4tRe8jVRNftH7ddvqOwqbWgxFw6T3eEgX5SAl1WQ2sEbCDx2ktv UI9k/Bk+TqCxC9CiK2rTkx95F2/dPltLNKVz8w/yOGdTldshr8cosLlpttm9JSqXkdso lFdQ== X-Gm-Message-State: AMCzsaVyuQwOZZDgQUd3Dv9b8d9C8wK7SJUPgYt/KbeohorVr0ozmmdM MRFpoEmX7nEr4JNtHDgi+ws+Xg== X-Google-Smtp-Source: AOwi7QDFEAULM6lb1+8w9BbtZENAaRVwNeJPz5CNj+xHQQoP2DYscYWrFfhHkVAnSNhVlkG2U/V4Ug== X-Received: by 10.28.28.201 with SMTP id c192mr1948234wmc.71.1507296942151; Fri, 06 Oct 2017 06:35:42 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id g25sm2550992wmc.16.2017.10.06.06.35.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Oct 2017 06:35:41 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH] Move arm.o arm-get-next-pcs.o arm-linux.o to arch/ Date: Fri, 6 Oct 2017 14:35:36 +0100 Message-Id: <1507296936-22968-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes It is tested by building GDB for some targets, arm-elf, arm-netbsd, arm-linux, and aarch64-linux. I'll pushed it in. gdb: 2017-10-06 Yao Qi * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o, and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and arch/arm-linux.o respectively. * configure.tgt: Likewise. --- gdb/ChangeLog | 7 +++++++ gdb/Makefile.in | 6 +++--- gdb/configure.tgt | 8 ++++---- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fc19c8b..df704f8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2017-10-06 Yao Qi + * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o, + and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and + arch/arm-linux.o respectively. + * configure.tgt: Likewise. + +2017-10-06 Yao Qi + * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o. * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index c40cb76..4492aca 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -793,11 +793,11 @@ ALL_64_TARGET_OBS = \ # All other target-dependent objects files (used with --enable-targets=all). ALL_TARGET_OBS = \ arc-tdep.o \ + arch/arm.o \ + arch/arm-get-next-pcs.o \ + arch/arm-linux.o \ arch/i386.o \ - arm.o \ arm-bsd-tdep.o \ - arm-get-next-pcs.o \ - arm-linux.o \ arm-linux-tdep.o \ arm-nbsd-tdep.o \ arm-obsd-tdep.o \ diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 4b3be3f..52ae467 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -59,7 +59,7 @@ arc*-*-*) ;; arm*-*-*) - cpu_obs="arm.o arm-get-next-pcs.o arm-tdep.o";; + cpu_obs="arch/arm.o arch/arm-get-next-pcs.o arm-tdep.o";; hppa*-*-*) # Target: HP PA-RISC @@ -115,8 +115,8 @@ aarch64*-*-freebsd*) aarch64*-*-linux*) # Target: AArch64 linux gdb_target_obs="aarch64-linux-tdep.o \ - arm.o arm-linux.o arm-get-next-pcs.o arm-tdep.o \ - arm-linux-tdep.o \ + arch/arm.o arch/arm-linux.o arch/arm-get-next-pcs.o \ + arm-tdep.o arm-linux-tdep.o \ glibc-tdep.o linux-tdep.o solib-svr4.o \ symfile-mem.o linux-record.o" build_gdbserver=yes @@ -156,7 +156,7 @@ arm*-wince-pe | arm*-*-mingw32ce*) ;; arm*-*-linux*) # Target: ARM based machine running GNU/Linux - gdb_target_obs="arm-linux.o arm-linux-tdep.o glibc-tdep.o \ + gdb_target_obs="arch/arm-linux.o arm-linux-tdep.o glibc-tdep.o \ solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o" build_gdbserver=yes ;;