X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fauxv.h;h=570a44a9e72a711620260b83f01fcbb2dd965c11;hb=6c73f67f9c545425befde590f06d690a068a69e2;hp=ace6c0494f1fc89e7a843a17501b38e9efcae00e;hpb=8de71aab66c182ec1f6eb95ed943b64900dd7770;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/auxv.h b/gdb/auxv.h index ace6c0494f..570a44a9e7 100644 --- a/gdb/auxv.h +++ b/gdb/auxv.h @@ -1,6 +1,6 @@ /* Auxiliary vector support for GDB, the GNU debugger. - Copyright (C) 2004-2014 Free Software Foundation, Inc. + Copyright (C) 2004-2017 Free Software Foundation, Inc. This file is part of GDB. @@ -46,6 +46,20 @@ extern int target_auxv_parse (struct target_ops *ops, extern int target_auxv_search (struct target_ops *ops, CORE_ADDR match, CORE_ADDR *valp); +/* Print a description of a single AUXV entry on the specified file. */ +enum auxv_format { AUXV_FORMAT_DEC, AUXV_FORMAT_HEX, AUXV_FORMAT_STR }; + +extern void fprint_auxv_entry (struct ui_file *file, const char *name, + const char *description, + enum auxv_format format, CORE_ADDR type, + CORE_ADDR val); + +/* The default implementation of gdbarch_print_auxv_entry. */ + +extern void default_print_auxv_entry (struct gdbarch *gdbarch, + struct ui_file *file, CORE_ADDR type, + CORE_ADDR val); + /* Print the contents of the target's AUXV on the specified file. */ extern int fprint_target_auxv (struct ui_file *file, struct target_ops *ops);