Move linux_find_memory_regions_full & co.
[deliverable/binutils-gdb.git] / gdb / target / target-utils.h
CommitLineData
ddc98fbf
JK
1/* Utility target functions for GDB, and GDBserver.
2
3 Copyright (C) 2015 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20#ifndef TARGET_TARGET_UTILS_H
21#define TARGET_TARGET_UTILS_H
22
9904185c
JK
23typedef int (read_alloc_pread_ftype) (int handle, gdb_byte *read_buf, int len,
24 ULONGEST offset, int *target_errno);
25extern LONGEST read_alloc (gdb_byte **buf_p, int handle,
26 read_alloc_pread_ftype *pread_func, int padding);
27
28struct inferior;
29typedef LONGEST (read_stralloc_func_ftype) (struct inferior *inf,
30 const char *filename,
31 gdb_byte **buf_p, int padding);
32extern char *read_stralloc (struct inferior *inf, const char *filename,
33 read_stralloc_func_ftype *func);
34
ddc98fbf 35#endif /* TARGET_TARGET_UTILS_H */
This page took 0.024582 seconds and 4 git commands to generate.