From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6373 invoked by alias); 1 Jul 2002 21:16:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6359 invoked from network); 1 Jul 2002 21:16:53 -0000 Received: from unknown (HELO kerberos.suse.cz) (195.47.106.10) by sources.redhat.com with SMTP; 1 Jul 2002 21:16:53 -0000 Received: from chimera.suse.cz (chimera.suse.cz [10.20.0.2]) by kerberos.suse.cz (SuSE SMTP server) with ESMTP id BE2D759D34C; Mon, 1 Jul 2002 23:16:52 +0200 (CEST) Received: from suse.cz (naga.suse.cz [10.20.1.16]) by chimera.suse.cz (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g61LGqg05875; Mon, 1 Jul 2002 23:16:52 +0200 X-Authentication-Warning: chimera.suse.cz: Host naga.suse.cz [10.20.1.16] claimed to be suse.cz Message-ID: <3D20C6C3.4010600@suse.cz> Date: Mon, 01 Jul 2002 14:16:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: Andrew Cagney Cc: gdb Subject: Re: cross-target gdb compilation problems References: <3D2080A2.6080702@suse.cz> <3D20834F.3000304@ges.redhat.com> Content-Type: multipart/mixed; boundary="------------000908080308020101010702" X-SW-Source: 2002-07/txt/msg00014.txt.bz2 This is a multi-part message in MIME format. --------------000908080308020101010702 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Content-length: 724 Andrew Cagney wrote: > Until someone fixes these limitations in the solib code, adding the > include to the tm*-.h file (and dropping back to multi-arch partial) is > the accepted way of addressing this problem. Well, so can you then aprove the patch attached? Also please try to compile gdb with --target=x86_64-unknown-linux and tell me if I can remove the "broken" flag from MAINTAINERS if you were successfull. 2002-07-01 Michal Ludvig * config/i386/tm-x86_64linux.h: New. * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE definitions. Thanks in advance Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz --------------000908080308020101010702 Content-Type: text/plain; name="tm-solib.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tm-solib.diff" Content-length: 2351 Index: config/i386/tm-x86_64linux.h =================================================================== RCS file: config/i386/tm-x86_64linux.h diff -N config/i386/tm-x86_64linux.h *** /dev/null 1 Jan 1970 00:00:00 -0000 --- config/i386/tm-x86_64linux.h 1 Jul 2002 20:49:46 -0000 *************** *** 0 **** --- 1,36 ---- + /* Definitions to target GDB to GNU/Linux on x86-64. + + Copyright 2002 Free Software Foundation, Inc. + + Contributed by Michal Ludvig, SuSE Labs. + + This file is part of GDB. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + + #ifndef TM_LINUX_H + #define TM_LINUX_H + + /* We define SVR4_SHARED_LIBS unconditionally, on the assumption that + * link.h is available on all linux platforms. For I386 and SH3/4, + * we hard-code the information rather than use link.h anyway (for + * the benefit of cross-debugging). We may move to doing that for + * other architectures as well. */ + + #define SVR4_SHARED_LIBS + #include "solib.h" /* Support for shared libraries. */ + + #endif /* #ifndef TM_LINUX_H */ Index: config/i386/x86-64linux.mt =================================================================== RCS file: /cvs/src/src/gdb/config/i386/x86-64linux.mt,v retrieving revision 1.4 diff -c -3 -p -r1.4 x86-64linux.mt *** config/i386/x86-64linux.mt 7 Jun 2002 16:11:10 -0000 1.4 --- config/i386/x86-64linux.mt 1 Jul 2002 20:49:46 -0000 *************** *** 1,3 **** --- 1,7 ---- # Target: AMD x86-64 running GNU/Linux TDEPFILES= x86-64-tdep.o x86-64-linux-tdep.o dwarf2cfi.o \ solib.o solib-svr4.o solib-legacy.o + + GDB_MULTI_ARCH=GDB_MULTI_ARCH_TM + + TM_FILE=tm-x86_64linux.h --------------000908080308020101010702--