gdb/gdbserver/xtensa-xtregs.c - gdb

Global variables defined

Data types defined

Macros defined

Source code

  1. /* Table mapping between kernel xtregset and GDB register cache.
  2.    Copyright (C) 2007-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU General Public License as
  6.    published by the Free Software Foundation; either version 3 of the
  7.    License, or (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11.    General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */


  14. typedef struct {
  15.   int   gdb_regnum;
  16.   int   gdb_offset;
  17.   int   ptrace_cp_offset;
  18.   int   ptrace_offset;
  19.   int   size;
  20.   int   coproc;
  21.   int   dbnum;
  22.   char* name
  23. ;} xtensa_regtable_t;

  24. #define XTENSA_ELF_XTREG_SIZE        4

  25. const xtensa_regtable_t  xtensa_regmap_table[] = {
  26.   /* gnum,gofs,cpofs,ofs,siz,cp, dbnum,  name */
  27.   {   44, 176,   0,   04, -1, 0x020c, "scompare1" },
  28.   { 0 }
  29. };