From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30535 invoked by alias); 28 May 2002 15:33:22 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30499 invoked from network); 28 May 2002 15:33:17 -0000 Received: from unknown (HELO harvester.transas.com) (193.125.200.2) by sources.redhat.com with SMTP; 28 May 2002 15:33:17 -0000 Received: from localhost (localhost [127.0.0.1]) by harvester.transas.com (Postfix) with SMTP id 6401C6B829; Tue, 28 May 2002 19:33:15 +0400 (MSD) Received: from clue.transas.com (clue.transas.com [10.0.0.42]) by harvester.transas.com (Postfix) with ESMTP id 1E1916B81F; Tue, 28 May 2002 19:33:13 +0400 (MSD) Received: by clue.transas.com with Internet Mail Service (5.5.2653.19) id ; Tue, 28 May 2002 19:33:12 +0400 Message-ID: <2E74F312D6980D459F3A05492BA40F8DE4D779@clue.transas.com> From: Andrew Volkov To: binutils@sources.redhat.com, gdb-patches@sources.redhat.com Cc: Alan Modra , Andrew Cagney Subject: [patch/rfa] cpu-h8300.c move default target to begin of list Date: Tue, 28 May 2002 08:50:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" X-SW-Source: 2002-05/txt/msg00966.txt.bz2 Hi, This patch temporarily solve problem with loose arches in gdb (set/show architecture command). Andrey Volkov 2002-05-28 Andrey Volkov * cpu-h8300.c : Make default h8300 machine first in machine list. Index: cpu-h8300.c =================================================================== RCS file: /cvs/src/src/bfd/cpu-h8300.c,v retrieving revision 1.8 diff -u -r1.8 cpu-h8300.c --- cpu-h8300.c 4 Apr 2002 14:04:39 -0000 1.8 +++ cpu-h8300.c 28 May 2002 15:20:39 -0000 @@ -97,34 +97,36 @@ return in; } -static const bfd_arch_info_type h8300_info_struct = +static const bfd_arch_info_type h8300s_info_struct; + +static const bfd_arch_info_type h8300h_info_struct = { - 16, /* 16 bits in a word */ - 16, /* 16 bits in an address */ + 32, /* 32 bits in a word */ + 32, /* 32 bits in an address */ 8, /* 8 bits in a byte */ bfd_arch_h8300, - bfd_mach_h8300, - "h8300", /* arch_name */ - "h8300", /* printable name */ + bfd_mach_h8300h, + "h8300h", /* arch_name */ + "h8300h", /* printable name */ 1, - true, /* the default machine */ + false, /* the default machine */ compatible, h8300_scan, #if 0 local_bfd_reloc_type_lookup, #endif - 0, + &h8300s_info_struct }; -static const bfd_arch_info_type h8300h_info_struct = +static const bfd_arch_info_type h8300s_info_struct = { 32, /* 32 bits in a word */ 32, /* 32 bits in an address */ 8, /* 8 bits in a byte */ bfd_arch_h8300, - bfd_mach_h8300h, - "h8300h", /* arch_name */ - "h8300h", /* printable name */ + bfd_mach_h8300s, + "h8300s", /* arch_name */ + "h8300s", /* printable name */ 1, false, /* the default machine */ compatible, @@ -132,24 +134,26 @@ #if 0 local_bfd_reloc_type_lookup, #endif - &h8300_info_struct, + 0 }; +/* avolkov: Must be first in list, since this is default */ + const bfd_arch_info_type bfd_h8300_arch = { - 32, /* 32 bits in a word */ - 32, /* 32 bits in an address */ + 16, /* 16 bits in a word */ + 16, /* 16 bits in an address */ 8, /* 8 bits in a byte */ bfd_arch_h8300, - bfd_mach_h8300s, - "h8300s", /* arch_name */ - "h8300s", /* printable name */ + bfd_mach_h8300, + "h8300", /* arch_name */ + "h8300", /* printable name */ 1, - false, /* the default machine */ + true, /* the default machine */ compatible, h8300_scan, #if 0 local_bfd_reloc_type_lookup, #endif - &h8300h_info_struct, + &h8300h_info_struct };