gdb/auxv.h - gdb

Macros defined

Source code

  1. /* Auxiliary vector support for GDB, the GNU debugger.

  2.    Copyright (C) 2004-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 3 of the License, or
  7.    (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  14. #ifndef AUXV_H
  15. #define AUXV_H

  16. #include "target.h"

  17. /* See "include/elf/common.h" for the definition of valid AT_* values.  */

  18. /* The default implementation of to_auxv_parse, used by the target
  19.    stack.  */

  20. extern int default_auxv_parse (struct target_ops *ops, gdb_byte **readptr,
  21.                                gdb_byte *endptr, CORE_ADDR *typep,
  22.                                CORE_ADDR *valp);

  23. /* Read one auxv entry from *READPTR, not reading locations >= ENDPTR.
  24.    Return 0 if *READPTR is already at the end of the buffer.
  25.    Return -1 if there is insufficient buffer for a whole entry.
  26.    Return 1 if an entry was read into *TYPEP and *VALP.  */
  27. extern int target_auxv_parse (struct target_ops *ops,
  28.                               gdb_byte **readptr, gdb_byte *endptr,
  29.                               CORE_ADDR *typep, CORE_ADDR *valp);

  30. /* Extract the auxiliary vector entry with a_type matching MATCH.
  31.    Return zero if no such entry was found, or -1 if there was
  32.    an error getting the information.  On success, return 1 after
  33.    storing the entry's value field in *VALP.  */
  34. extern int target_auxv_search (struct target_ops *ops,
  35.                                CORE_ADDR match, CORE_ADDR *valp);

  36. /* Print the contents of the target's AUXV on the specified file.  */
  37. extern int fprint_target_auxv (struct ui_file *file, struct target_ops *ops);

  38. extern target_xfer_partial_ftype memory_xfer_auxv;


  39. #endif