diff options
Diffstat (limited to 'gdb/auxv.h')
-rw-r--r-- | gdb/auxv.h | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -31,7 +31,8 @@ Return 0 if *READPTR is already at the end of the buffer. Return -1 if there is insufficient buffer for a whole entry. Return 1 if an entry was read into *TYPEP and *VALP. */ -extern int default_auxv_parse (struct target_ops *ops, const gdb_byte **readptr, +extern int default_auxv_parse (struct target_ops *ops, + const gdb_byte **readptr, const gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp); @@ -62,9 +63,9 @@ extern gdb::optional<gdb::byte_vector> target_read_auxv_raw (target_ops *ops); an error getting the information. On success, return 1 after storing the entry's value field in *VALP. */ -extern int target_auxv_search (const gdb::byte_vector &auxv, - target_ops *ops, gdbarch *gdbarch, - CORE_ADDR match, CORE_ADDR *valp); +extern int target_auxv_search (const gdb::byte_vector &auxv, target_ops *ops, + gdbarch *gdbarch, CORE_ADDR match, + CORE_ADDR *valp); /* Same as the above, but read the auxv data from the current inferior. Use the current inferior's top target and arch to parse auxv entries. */ @@ -72,7 +73,12 @@ extern int target_auxv_search (const gdb::byte_vector &auxv, extern int target_auxv_search (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 }; +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, @@ -87,5 +93,4 @@ extern void default_print_auxv_entry (struct gdbarch *gdbarch, extern target_xfer_partial_ftype memory_xfer_auxv; - #endif |