This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] don't test long long return on h8


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"




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]