From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66645 invoked by alias); 4 Mar 2015 11:36:23 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 66508 invoked by uid 89); 4 Mar 2015 11:36:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (176.31.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 04 Mar 2015 11:36:20 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] S390: Place "s390:31-bit" after default arch in 64-bit arch list From: sergiodj+buildbot@redhat.com To: gdb-testers@sourceware.org Message-Id: Date: Wed, 04 Mar 2015 12:24:00 -0000 X-SW-Source: 2015-q1/txt/msg04481.txt.bz2 *** TEST RESULTS FOR COMMIT df88b70224175011abf2cd599d5eec6fb81a90b7 *** Author: Andreas Arnez Branch: master Commit: df88b70224175011abf2cd599d5eec6fb81a90b7 S390: Place "s390:31-bit" after default arch in 64-bit arch list On 64-bit platforms GDB did not include "s390:31-bit" in its list of architecture names. This patch fixes that. To determine the list of architecture names for S390, gdbarch_printable_names() walks through the linked list of BFD arches starting with the default S390 arch, which is "s390:64-bit" on 64-bit platforms. But since "s390:64-bit" was at the end of that list, the 31-bit architecture was not reached. The patch swaps the elements of that list on 64-bit platforms. bfd/ChangeLog: * cpu-s390.c (N): New macro. (bfd_s390_31_arch): New. Define only if default target word size is 64 bits. Otherwise define... (bfd_390_64_arch): ...this. Make static. (bfd_s390_arch): Define according to the default target word size. Let the 'next' field point to the alternate arch.