From: Michal Ludvig <mludvig@suse.cz>
To: Andrew Cagney <ac131313@ges.redhat.com>
Cc: gdb <gdb@sources.redhat.com>
Subject: Re: cross-target gdb compilation problems
Date: Mon, 01 Jul 2002 14:16:00 -0000 [thread overview]
Message-ID: <3D20C6C3.4010600@suse.cz> (raw)
In-Reply-To: <3D20834F.3000304@ges.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 724 bytes --]
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
[-- Attachment #2: tm-solib.diff --]
[-- Type: text/plain, Size: 2351 bytes --]
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
next prev parent reply other threads:[~2002-07-01 21:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-01 9:17 Michal Ludvig
2002-07-01 9:29 ` Andrew Cagney
2002-07-01 14:16 ` Michal Ludvig [this message]
2002-07-01 14:52 ` Andrew Cagney
2002-07-01 10:52 ` Kevin Buettner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D20C6C3.4010600@suse.cz \
--to=mludvig@suse.cz \
--cc=ac131313@ges.redhat.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox