GDB (API)
/home/stan/gdb/src/gdb/auxv.h
Go to the documentation of this file.
00001 /* Auxiliary vector support for GDB, the GNU debugger.
00002 
00003    Copyright (C) 2004-2013 Free Software Foundation, Inc.
00004 
00005    This file is part of GDB.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 3 of the License, or
00010    (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00019 
00020 #ifndef AUXV_H
00021 #define AUXV_H
00022 
00023 #include "target.h"
00024 
00025 /* See "include/elf/common.h" for the definition of valid AT_* values.  */
00026 
00027 /* Read one auxv entry from *READPTR, not reading locations >= ENDPTR.
00028    Return 0 if *READPTR is already at the end of the buffer.
00029    Return -1 if there is insufficient buffer for a whole entry.
00030    Return 1 if an entry was read into *TYPEP and *VALP.  */
00031 extern int target_auxv_parse (struct target_ops *ops,
00032                               gdb_byte **readptr, gdb_byte *endptr,
00033                               CORE_ADDR *typep, CORE_ADDR *valp);
00034 
00035 /* Extract the auxiliary vector entry with a_type matching MATCH.
00036    Return zero if no such entry was found, or -1 if there was
00037    an error getting the information.  On success, return 1 after
00038    storing the entry's value field in *VALP.  */
00039 extern int target_auxv_search (struct target_ops *ops,
00040                                CORE_ADDR match, CORE_ADDR *valp);
00041 
00042 /* Print the contents of the target's AUXV on the specified file.  */
00043 extern int fprint_target_auxv (struct ui_file *file, struct target_ops *ops);
00044 
00045 extern LONGEST memory_xfer_auxv (struct target_ops *ops,
00046                                  enum target_object object,
00047                                  const char *annex,
00048                                  gdb_byte *readbuf,
00049                                  const gdb_byte *writebuf,
00050                                  ULONGEST offset,
00051                                  LONGEST len);
00052 
00053 
00054 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines