GDBserver
Main Page
Classes
Files
File List
File Members
gdbserver
lynx-low.h
Go to the documentation of this file.
1
/* Copyright (C) 2010-2015 Free Software Foundation, Inc.
2
3
This file is part of GDB.
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 3 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>. */
17
18
struct
regcache
;
19
struct
target_desc
;
20
21
/* Some information relative to a given register set. */
22
23
struct
lynx_regset_info
24
{
25
/* The ptrace request needed to get/set registers of this set. */
26
int
get_request
,
set_request
;
27
/* The size of the register set. */
28
int
size
;
29
/* Fill the buffer BUF from the contents of the given REGCACHE. */
30
void (*
fill_function
) (
struct
regcache
*
regcache
,
char
*buf);
31
/* Store the register value in BUF in the given REGCACHE. */
32
void (*
store_function
) (
struct
regcache *regcache,
const
char
*buf);
33
};
34
35
/* A list of regsets for the target being debugged, terminated by an entry
36
where the size is negative.
37
38
This list should be created by the target-specific code. */
39
40
extern
struct
lynx_regset_info
lynx_target_regsets
[];
41
42
/* The target-specific operations for LynxOS support. */
43
44
struct
lynx_target_ops
45
{
46
/* Architecture-specific setup. */
47
void (*
arch_setup
) (void);
48
};
49
50
extern
struct
lynx_target_ops
the_low_target
;
51
52
/* The inferior's target description. This is a global because the
53
LynxOS ports support neither bi-arch nor multi-process. */
54
extern
const
struct
target_desc
*
lynx_tdesc
;
lynx_regset_info::store_function
void(* store_function)(struct regcache *regcache, const char *buf)
Definition:
lynx-low.h:32
lynx_regset_info::fill_function
void(* fill_function)(struct regcache *regcache, char *buf)
Definition:
lynx-low.h:30
lynx_target_regsets
struct lynx_regset_info lynx_target_regsets[]
Definition:
lynx-i386-low.c:304
regcache
Definition:
regcache.h:38
lynx_target_ops
Definition:
lynx-low.h:44
lynx_tdesc
const struct target_desc * lynx_tdesc
Definition:
lynx-low.c:34
lynx_target_ops::arch_setup
void(* arch_setup)(void)
Definition:
lynx-low.h:47
target_desc
Definition:
tdesc.h:26
lynx_regset_info::get_request
int get_request
Definition:
lynx-low.h:26
lynx_regset_info::size
int size
Definition:
lynx-low.h:28
lynx_regset_info::set_request
int set_request
Definition:
lynx-low.h:26
lynx_regset_info
Definition:
lynx-low.h:23
the_low_target
struct lynx_target_ops the_low_target
Definition:
linux-aarch64-low.c:1307
Generated by
1.8.10