| Index: gdb/cris-tdep.h
|
| diff --git a/gdb/testsuite/gdb.cp/arg-reference.cc b/gdb/cris-tdep.h
|
| similarity index 61%
|
| copy from gdb/testsuite/gdb.cp/arg-reference.cc
|
| copy to gdb/cris-tdep.h
|
| index 3722f38cb907f99eda780c19eaaf5c17fe3af5ec..247f91fd7791a76c9c025d91e4be68747d8b5d20 100644
|
| --- a/gdb/testsuite/gdb.cp/arg-reference.cc
|
| +++ b/gdb/cris-tdep.h
|
| @@ -1,6 +1,9 @@
|
| -/* This testcase is part of GDB, the GNU debugger.
|
| +/* Target dependent code for CRIS, for GDB, the GNU debugger.
|
|
|
| - Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
| + Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
| +
|
| + Contributed by Axis Communications AB.
|
| + Written by Hendrik Ruijter, Stefan Andersson, and Orjan Friberg.
|
|
|
| This file is part of GDB.
|
|
|
| @@ -17,33 +20,15 @@
|
| You should have received a copy of the GNU General Public License
|
| along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
| -class Obj
|
| -{
|
| -public:
|
| - Obj ();
|
| - Obj (const Obj &);
|
| - ~Obj ();
|
| - int var;
|
| -};
|
| -
|
| -int foo (Obj arg)
|
| -{
|
| - arg.var++;
|
| - return arg.var;
|
| -}
|
| -
|
| -int main()
|
| -{
|
| - Obj obj;
|
| -
|
| - return 0; /* initialized */
|
| -}
|
| +#ifndef CRIS_TDEP_H
|
| +#define CRIS_TDEP_H
|
|
|
| -Obj::Obj ()
|
| +/* CRIS architecture specific information. */
|
| +struct gdbarch_tdep
|
| {
|
| - var = 1;
|
| -}
|
| + unsigned int cris_version;
|
| + const char *cris_mode;
|
| + int cris_dwarf2_cfi;
|
| +};
|
|
|
| -Obj::~Obj ()
|
| -{
|
| -}
|
| +#endif /* CRIS_TDEP_H */
|
|
|