gdb/gdbserver:
[deliverable/binutils-gdb.git] / gdb / auxv.h
CommitLineData
14ed0a8b
RM
1/* Auxiliary vector support for GDB, the GNU debugger.
2
0b302171 3 Copyright (C) 2004-2012 Free Software Foundation, Inc.
14ed0a8b
RM
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
a9762ec7 9 the Free Software Foundation; either version 3 of the License, or
14ed0a8b
RM
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
a9762ec7 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
14ed0a8b
RM
19
20#ifndef AUXV_H
21#define AUXV_H
22
81b92222 23#include "target.h"
14ed0a8b 24
81b92222 25/* See "include/elf/common.h" for the definition of valid AT_* values. */
14ed0a8b 26
14ed0a8b
RM
27/* Read one auxv entry from *READPTR, not reading locations >= ENDPTR.
28 Return 0 if *READPTR is already at the end of the buffer.
29 Return -1 if there is insufficient buffer for a whole entry.
30 Return 1 if an entry was read into *TYPEP and *VALP. */
31extern int target_auxv_parse (struct target_ops *ops,
36aa5e41 32 gdb_byte **readptr, gdb_byte *endptr,
14ed0a8b
RM
33 CORE_ADDR *typep, CORE_ADDR *valp);
34
35/* Extract the auxiliary vector entry with a_type matching MATCH.
36 Return zero if no such entry was found, or -1 if there was
37 an error getting the information. On success, return 1 after
38 storing the entry's value field in *VALP. */
39extern int target_auxv_search (struct target_ops *ops,
40 CORE_ADDR match, CORE_ADDR *valp);
41
0e2de366 42/* Print the contents of the target's AUXV on the specified file. */
14ed0a8b
RM
43extern int fprint_target_auxv (struct ui_file *file, struct target_ops *ops);
44
9f2982ff 45extern LONGEST memory_xfer_auxv (struct target_ops *ops,
81b92222 46 enum target_object object,
14ed0a8b 47 const char *annex,
36aa5e41
AC
48 gdb_byte *readbuf,
49 const gdb_byte *writebuf,
14ed0a8b
RM
50 ULONGEST offset,
51 LONGEST len);
52
53
54#endif
This page took 0.494733 seconds and 4 git commands to generate.