Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: gdb/cris-tdep.h

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/cris-linux-tdep.c ('k') | gdb/cris-tdep.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */
« no previous file with comments | « gdb/cris-linux-tdep.c ('k') | gdb/cris-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698