* [PATCH] don't test long long return on h8
@ 2003-07-23 18:56 Michael Snyder
2003-07-23 20:30 ` Andrew Cagney
0 siblings, 1 reply; 2+ messages in thread
From: Michael Snyder @ 2003-07-23 18:56 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 84 bytes --]
long long is returned like a struct on h8 (by reference), and gdb can't
do that.
[-- Attachment #2: tmp --]
[-- Type: text/plain, Size: 866 bytes --]
2003-07-23 Michael Snyder <msnyder@redhat.com>
* gdb.base/return2.exp: Don't test long-long return.
Index: gdb.base/return2.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/return2.exp,v
retrieving revision 1.3
diff -p -r1.3 return2.exp
*** gdb.base/return2.exp 16 Jul 2001 18:49:43 -0000 1.3
--- gdb.base/return2.exp 23 Jul 2003 18:53:02 -0000
*************** proc return2_tests { } {
*** 109,115 ****
return_1 "short"
return_1 "int"
return_1 "long"
! if { ! [istarget "m6811-*-*"] } then {
return_1 "long_long"
}
return_1 "float"
--- 109,115 ----
return_1 "short"
return_1 "int"
return_1 "long"
! if { ! [istarget "m6811-*-*"] && ![istarget "h8300*-*"] } then {
return_1 "long_long"
}
return_1 "float"
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] don't test long long return on h8
2003-07-23 18:56 [PATCH] don't test long long return on h8 Michael Snyder
@ 2003-07-23 20:30 ` Andrew Cagney
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2003-07-23 20:30 UTC (permalink / raw)
To: Michael Snyder; +Cc: gdb-patches
> long long is returned like a struct on h8 (by reference), and gdb can't do that.
I think it would be better to try the "return long_long" and check that
GDB reports an error.
Andrew
> 2003-07-23 Michael Snyder <msnyder@redhat.com>
>
> * gdb.base/return2.exp: Don't test long-long return.
>
> Index: gdb.base/return2.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/return2.exp,v
> retrieving revision 1.3
> diff -p -r1.3 return2.exp
> *** gdb.base/return2.exp 16 Jul 2001 18:49:43 -0000 1.3
> --- gdb.base/return2.exp 23 Jul 2003 18:53:02 -0000
> *************** proc return2_tests { } {
> *** 109,115 ****
> return_1 "short"
> return_1 "int"
> return_1 "long"
> ! if { ! [istarget "m6811-*-*"] } then {
> return_1 "long_long"
> }
> return_1 "float"
> --- 109,115 ----
> return_1 "short"
> return_1 "int"
> return_1 "long"
> ! if { ! [istarget "m6811-*-*"] && ![istarget "h8300*-*"] } then {
> return_1 "long_long"
> }
> return_1 "float"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-23 20:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-23 18:56 [PATCH] don't test long long return on h8 Michael Snyder
2003-07-23 20:30 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox