This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cross-target gdb compilation problems


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 <mludvig@suse.cz>

* 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

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]