diff options
author | Walfred Tedeschi <walfred.tedeschi@intel.com> | 2016-02-02 11:46:28 +0100 |
---|---|---|
committer | Walfred Tedeschi <walfred.tedeschi@intel.com> | 2016-02-02 11:46:28 +0100 |
commit | 43564574f1de367f537a37bf6ec83bb4c29627c6 (patch) | |
tree | e77dc4abf2e14cb85cf5ec3d8d8ef7102ecd90d7 /gdb/linux-tdep.h | |
parent | 93813b37c86a70fbd4d8c9d63f95cf8b87bbf425 (diff) | |
download | gdb-43564574f1de367f537a37bf6ec83bb4c29627c6.zip gdb-43564574f1de367f537a37bf6ec83bb4c29627c6.tar.gz gdb-43564574f1de367f537a37bf6ec83bb4c29627c6.tar.bz2 |
Preparation for new siginfo on Linux
First add new structure and function to allow architecture customization
for the siginfo structure.
2016-01-15 Walfred Tedeschi <walfred.tedeschi@intel.com>
gdb/ChangeLog:
* linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
(linux_siginfo_extra_fields): New enum type.
* linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
(linux_get_siginfo_type): Use new function.
Diffstat (limited to 'gdb/linux-tdep.h')
-rw-r--r-- | gdb/linux-tdep.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/linux-tdep.h b/gdb/linux-tdep.h index 328c7f0..b2680f8 100644 --- a/gdb/linux-tdep.h +++ b/gdb/linux-tdep.h @@ -24,6 +24,18 @@ struct regcache; +/* Enum used to define the extra fields of the siginfo type used by an + architecture. */ +enum linux_siginfo_extra_field_values +{ + /* Add bound fields into the segmentation fault field. */ + LINUX_SIGINFO_FIELD_ADDR_BND = 1 +}; + +/* Defines a type for the values defined in linux_siginfo_extra_field_values. */ +DEF_ENUM_FLAGS_TYPE (enum linux_siginfo_extra_field_values, + linux_siginfo_extra_fields); + typedef char *(*linux_collect_thread_registers_ftype) (const struct regcache *, ptid_t, bfd *, char *, int *, |