xref: /netbsd-src/external/gpl3/gdb/dist/gdbserver/x86-tdesc.h (revision 2be465b09aca4bf6e67814eb0e0f409087138d90)
1*2be465b0Schristos /* Copyright (C) 2018-2024 Free Software Foundation, Inc.
28dffb485Schristos 
38dffb485Schristos    This file is part of GDB.
48dffb485Schristos 
58dffb485Schristos    This program is free software; you can redistribute it and/or modify
68dffb485Schristos    it under the terms of the GNU General Public License as published by
78dffb485Schristos    the Free Software Foundation; either version 3 of the License, or
88dffb485Schristos    (at your option) any later version.
98dffb485Schristos 
108dffb485Schristos    This program is distributed in the hope that it will be useful,
118dffb485Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
128dffb485Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
138dffb485Schristos    GNU General Public License for more details.
148dffb485Schristos 
158dffb485Schristos    You should have received a copy of the GNU General Public License
168dffb485Schristos    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
178dffb485Schristos 
188dffb485Schristos #ifndef GDBSERVER_X86_TDESC_H
198dffb485Schristos #define GDBSERVER_X86_TDESC_H
208dffb485Schristos 
218dffb485Schristos /* The "expedite" registers for x86 targets.  Since whether the
228dffb485Schristos    variable is used depends on host/configuration, we mark it
238dffb485Schristos    ATTRIBUTE_UNUSED to keep it simple here.  */
248dffb485Schristos static const char *i386_expedite_regs[] ATTRIBUTE_UNUSED
258dffb485Schristos     = {"ebp", "esp", "eip", NULL};
268dffb485Schristos 
278dffb485Schristos #ifdef __x86_64__
288dffb485Schristos /* The "expedite" registers for x86_64 targets.  */
298dffb485Schristos static const char *amd64_expedite_regs[] = {"rbp", "rsp", "rip", NULL};
308dffb485Schristos #endif
318dffb485Schristos 
328dffb485Schristos #endif /* GDBSERVER_X86_TDESC_H */
33