Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Markus Deuling <deuling@de.ibm.com>
To: Mark Kettenis <mark.kettenis@xs4all.nl>,
	gdb-patches@sourceware.org,         drow@false.org
Subject: Re: [RFA]: gdb/testsuite/gdb.arch/altivec-regs.exp Broken testcase
Date: Wed, 17 Jan 2007 06:37:00 -0000	[thread overview]
Message-ID: <45ADC40B.6000500@de.ibm.com> (raw)
In-Reply-To: <20070117055939.GA19331@nevyn.them.org>

Hi,

Daniel Jacobowitz schrieb:
> Mark is right again.  The fact that the testsuite isn't copying
> should point us at the fact that the output changed, and we don't know
> why.
> 
> On Tue, Jan 16, 2007 at 10:28:01PM +0100, Mark Kettenis wrote:
>> This worries me a bit.  So in the past we were able to determine the
>> endianness automagically, but now we don't?  Do we understand why?
>> Doesn't this mean that something is broken that worked before?
> 
> More precisely:
> 
>>> +    -re "The target is assumed to be big endian.*" {
>>> +        pass "endianess"
>>> +        set endianness "big"
>>> +    }
> 
> GDB has concluded from something (an earlier set command?  one of my
> gdbarch initialization changes?) that the user has specified the
> endianness.
> 
> Looking at it now, it looks to me like I've got a condition backwards
> in show_endian.  The != should actually be an ==.  I can't test a patch
> for that until I get home next week though.
> 
Is that what you meant ?

I changed
  if (target_byte_order_user != BFD_ENDIAN_UNKNOWN)
to
  if (target_byte_order_user == BFD_ENDIAN_UNKNOWN)

in show_endian().

x86:
This GDB was configured as "i686-pc-linux-gnu".
(gdb) show endian
The target endianness is set automatically (currently little endian)

So we wouldn't need the branch I inserted in altivec-regs.exp. 

But I think inserting
+set endianness ""
is a good idea. Then the testcase would have FAILed instead of abort with an error.

Regards,
Markus

-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com 


  reply	other threads:[~2007-01-17  6:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-16  6:48 Markus Deuling
2007-01-16 21:28 ` Mark Kettenis
2007-01-17  4:50   ` Markus Deuling
2007-01-17  5:59   ` Daniel Jacobowitz
2007-01-17  6:37     ` Markus Deuling [this message]
2007-01-17  8:31       ` Markus Deuling
2007-01-17 21:48       ` Mark Kettenis
2007-01-18  9:15         ` Markus Deuling
2007-01-20 18:32     ` Daniel Jacobowitz

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=45ADC40B.6000500@de.ibm.com \
    --to=deuling@de.ibm.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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