From: Luis Machado <lgustavo@codesourcery.com>
To: Pedro Alves <palves@redhat.com>, <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Restrict gdb.base/gcore-relro-pie.exp to native/linux targets
Date: Thu, 23 Feb 2017 14:47:00 -0000 [thread overview]
Message-ID: <6e1f21a5-3283-b30e-d7fa-e2c1453af882@codesourcery.com> (raw)
In-Reply-To: <093bd3d5-9723-2412-a736-8f29686d4a8a@redhat.com>
On 02/23/2017 08:24 AM, Pedro Alves wrote:
> On 02/23/2017 02:13 PM, Luis Machado wrote:
>> This particular test doesn't work correctly on aarch64-elf for a couple
>> reasons.
>>
>> First, the test is supposed to crash and bare-metal targets are not always
>> ready to handle such exceptions like Linux does. In our case the board just
>> keeps cycling within an ISR function.
>
> Hmm? AFAICS, the testcase is generating the core with gdb_gcore_cmd.
> How on earth is that causing this cycling?
I tend to see this particular target stopping later in the source file
compared to x86. I had an (incorrect) assumption it was dereferencing
NULL when running to break_here, but it doesn't seem to be the case. It
stops right at what would cause the crash:
(gdb) b break_here
Breakpoint 2 at 0x80000a20
(gdb) disass break_here
Dump of assembler code for function break_here:
0x0000000080000a1c <+0>: mov x0, #0x0
0x0000000080000a20 <+4>: str wzr, [x0]
It seems something is off with startup code/stack pointer then. Back to
the drawing board.
I still think it doesn't make much sense to run these tests if we're not
sure gcore will support them. They may run a few early tests/setup
tests, but that won't translate into meaningful PASSes. But i'm ok
keeping it as-is if others think the early test PASSes are useful.
next prev parent reply other threads:[~2017-02-23 14:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-23 14:13 Luis Machado
2017-02-23 14:25 ` Pedro Alves
2017-02-23 14:47 ` Luis Machado [this message]
2017-02-23 14:54 ` Pedro Alves
2017-02-23 15:10 ` Luis Machado
2017-02-23 15:43 ` Pedro Alves
2017-02-23 16:16 ` Luis Machado
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=6e1f21a5-3283-b30e-d7fa-e2c1453af882@codesourcery.com \
--to=lgustavo@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@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