From: "Kei Sakamoto" <sakamoto.kei@renesas.com>
To: "Michael Snyder" <msnyder@redhat.com>
Cc: <gdb-patches@sources.redhat.com>
Subject: Re: [RFA/testcase] Enable overlays.exp only for sim target
Date: Tue, 05 Oct 2004 04:52:00 -0000 [thread overview]
Message-ID: <026101c4aa97$1d5a3050$5169910a@E5A02646> (raw)
In-Reply-To: <415DCC83.1070806@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 776 bytes --]
> I guess I've never run this test on d10v hardware, but
> I used to run it on m32r hardware. Why would it only
> work on the sim?
I'm sorry. I forgot about the remote debug environment.
The overlay test should work on evaluation boards and
emulators too.
> Matter of fact, why shouldn't it work just about anywhere?
> It doesn't have any hardware dependency, just a linker script.
It seems that Linux kernel can't load overlaid programs
into memory because VMA and LMA of overlaid
sections are different. So overlays.exp is not available on
the Linux.
I revised the patch file. It disables overlays.exp if target is Linux.
Is this OK?
Kei Sakamoto
2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
* gdb.base/overlays.exp: Disables if target is Linux.
[-- Attachment #2: overlays.patch --]
[-- Type: application/octet-stream, Size: 606 bytes --]
Index: gdb.base/overlays.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/overlays.exp,v
retrieving revision 1.5
diff -u -r1.5 overlays.exp
--- gdb.base/overlays.exp 20 Jan 2003 15:40:07 -0000 1.5
+++ gdb.base/overlays.exp 5 Oct 2004 04:39:51 -0000
@@ -39,6 +39,11 @@
return
}
+if [istarget "*-*-linux*"] then {
+ verbose "Skipping overlay test -- Linux doesn't support overlayed programs."
+ return
+}
+
set testfile "overlays"
set binfile ${objdir}/${subdir}/${testfile}
set srcfile ${testfile}.c
next prev parent reply other threads:[~2004-10-05 4:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-01 9:10 Kei Sakamoto
2004-10-01 21:31 ` Michael Snyder
2004-10-05 4:52 ` Kei Sakamoto [this message]
2004-10-07 18:26 ` Michael Snyder
2004-10-08 1:03 ` Kei Sakamoto
2004-10-08 18:13 ` Michael Chastain
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='026101c4aa97$1d5a3050$5169910a@E5A02646' \
--to=sakamoto.kei@renesas.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@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