aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-07-09 09:39:05 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2020-07-09 09:39:05 -0700
commitfc238d4a066cdb1a979475ffdf5bd45cdb8a00f0 (patch)
tree1ffb5fb644d6a3124c3c02936e5d0f5ffdd380ca /include
parent939b95c77bf273b252a49334844c469bd28356a9 (diff)
downloadgdb-fc238d4a066cdb1a979475ffdf5bd45cdb8a00f0.zip
gdb-fc238d4a066cdb1a979475ffdf5bd45cdb8a00f0.tar.gz
gdb-fc238d4a066cdb1a979475ffdf5bd45cdb8a00f0.tar.bz2
Support several new ELF auxiliary vector types on FreeBSD.
FreeBSD's kernel recently added several ELF auxiliary vector entries to describe the arguments passed to new executable images during exec(). The AT_FREEBSD_ARGC and AT_FREEBSD_ARGV entries give the length and address of the process argument array. AT_FREEBSD_ENVC and AT_FREEBSD_ENVV entries give the length and address of the initial process environment. AT_FREEBSD_PS_STRINGS gives the address of the 'struct ps_strings' object. include/ChangeLog: * elf/common.h (AT_FREEBSD_ARGC, AT_FREEBSD_ARGV, AT_FREEBSD_ENVC) (AT_FREEBSD_ENVV, AT_FREEBSD_PS_STRINGS): Define. gdb/ChangeLog: * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC, AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV, AT_FREEBSD_PS_STRINGS.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog5
-rw-r--r--include/elf/common.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 1d7cafb..49b9f03 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2020-07-09 John Baldwin <jhb@FreeBSD.org>
+
+ * elf/common.h (AT_FREEBSD_ARGC, AT_FREEBSD_ARGV, AT_FREEBSD_ENVC)
+ (AT_FREEBSD_ENVV, AT_FREEBSD_PS_STRINGS): Define.
+
2020-07-09 Alan Modra <amodra@gmail.com>
* coff/powerpc.h: Delete.
diff --git a/include/elf/common.h b/include/elf/common.h
index 4d94c4f..88dd1c9 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -1255,6 +1255,11 @@
#define AT_FREEBSD_HWCAP 25 /* CPU feature flags. */
#define AT_FREEBSD_HWCAP2 26 /* CPU feature flags 2. */
#define AT_FREEBSD_BSDFLAGS 27 /* ELF BSD Flags. */
+#define AT_FREEBSD_ARGC 28 /* Argument count. */
+#define AT_FREEBSD_ARGV 29 /* Argument vector. */
+#define AT_FREEBSD_ENVC 30 /* Environment count. */
+#define AT_FREEBSD_ENVV 31 /* Environment vvector. */
+#define AT_FREEBSD_PS_STRINGS 32 /* struct ps_strings. */
#define AT_SUN_UID 2000 /* Effective user ID. */
#define AT_SUN_RUID 2001 /* Real user ID. */