GDB (API)
/home/stan/gdb/src/gdb/sim-regno.h
Go to the documentation of this file.
00001 /* Generic remote debugging interface for simulators.
00002 
00003    Copyright (C) 2002-2013 Free Software Foundation, Inc.
00004 
00005    Contributed by Red Hat, Inc.
00006 
00007    This file is part of GDB.
00008 
00009    This program is free software; you can redistribute it and/or modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation; either version 3 of the License, or
00012    (at your option) any later version.
00013 
00014    This program is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017    GNU General Public License for more details.
00018 
00019    You should have received a copy of the GNU General Public License
00020    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00021 
00022 #ifndef SIM_REGNO_H
00023 #define SIM_REGNO_H
00024 
00025 /* The gdbarch_register_sim_regno (REGNUM) method, when there is a
00026    corresponding simulator register, returns that register number as a
00027    cardinal.  When there is no corresponding register, it returns a
00028    negative value.  */
00029 
00030 enum sim_regno {
00031   /* Normal sane architecture.  The simulator is known to not model
00032      this register.  */
00033   SIM_REGNO_DOES_NOT_EXIST = -1,
00034   /* For possible backward compatibility.  The register cache doesn't
00035      have a corresponding name.  Skip the register entirely.  */
00036   LEGACY_SIM_REGNO_IGNORE = -2
00037 };
00038 
00039 /* Treat all raw registers as valid.  */
00040 
00041 extern int one2one_register_sim_regno (struct gdbarch *gdbarch, int regnum);
00042 
00043 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines