From: Andrew Cagney <ac131313@cygnus.com>
To: Denis Joseph Barrow <DJBARROW@de.ibm.com>
Cc: gdb-patches@sourceware.cygnus.com
Subject: Re: gdb & gdbserver for s390 31 & 64 bit
Date: Fri, 28 Sep 2001 10:33:00 -0000 [thread overview]
Message-ID: <3BB4B469.2090209@cygnus.com> (raw)
In-Reply-To: <OFFEACF1CF.065C9A78-ONC1256AD5.003C16DD@de.ibm.com>
>
> Setting GDB_MULTI_ARCH to 1 in /config/s390.mt & /config/s390x.mt
> does work & compile correctly on 31 & 64 bit,
Ok, thanks. I'll set it to 1.
> However I think the tm-sysv4.h change should stay.
>
> If you look at the definition in tm-sysv4.h in the code ( see below ) it should
> still be identical for PPC even after preprocessing as SKIP_TRAMPOLINE_CODE is still defined for
> GDB_MULTI_ARCH_PARTIAL
>
> However there will be a duplicate definitions compile error between gdbarch.h
> & tm-sysv4.h if you switch the multi arch level to 2 & you don't put this fix in.
> I don't see how this fix can cause problems.
Hmm, the mechanism was introduced around 2001-06-17 so likely postdates
your code.
To explain the rationale.
Level 2 or (multi-arch tm) is intended strictly for a GDB developer's
local sources. It is there as an aid when performing maintenance on a
target's multi-arch code. It is expected that the maintainer will set
multi-arch to 2, do a build, fix all the compilation errors caused by
mult-arch clashes with methods that post date the target, revert the
setting back to 1.
If tm-sysv4.h were to get the addition you suggest then this mechanism
would be defeated for other maintainers - they would silently get the
uninitialized multi-arch version of SKIP_TRAMPOLINE_CODE instead of a
compilation error alerting them to the need for maintenance.
I should note, this isn't hypothetical - the mechanism was introduced in
response to a mysterious solaris/sparc breakage. A multi-arch macro
overruled a tm macro and quietly broke that platforms gdb.
Any way, for these common files, I think it is better if each individual
target addresses the problem separatly - #undef ... or better eliminate
the #include pulling in the header.
enjoy,
Andrew
next prev parent reply other threads:[~2001-09-28 10:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-28 4:38 Denis Joseph Barrow
2001-09-28 10:33 ` Andrew Cagney [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-10-01 4:49 Denis Joseph Barrow
2001-10-01 8:44 ` Andrew Cagney
2001-09-27 4:00 Denis Joseph Barrow
2001-09-27 18:40 ` Andrew Cagney
2001-09-27 20:17 ` Andrew Cagney
2001-09-27 20:29 ` Andrew Cagney
2001-09-10 11:55 Denis Joseph Barrow
2001-09-26 17:37 ` Andrew Cagney
2001-09-26 18:26 ` Andrew Cagney
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=3BB4B469.2090209@cygnus.com \
--to=ac131313@cygnus.com \
--cc=DJBARROW@de.ibm.com \
--cc=gdb-patches@sourceware.cygnus.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