This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Add AUXV parsing for new AT_RANDOM
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 16 Mar 2009 11:03:25 +0100
- Subject: [obv] Add AUXV parsing for new AT_RANDOM
Hi,
Linux kernel pre-2.6.29 already contains a new AUXV tag:
+#define AT_RANDOM 25 /* address of 16 random bytes */
http://sourceware.org/ml/libc-alpha/2008-10/threads.html#00006
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=f06295b44c296c8fb08823a3118468ae343b60f2
Alread did check-in the include/elf/common.h definition:
http://sourceware.org/ml/binutils-cvs/2009-03/msg00146.html
http://sourceware.org/ml/binutils/2009-03/msg00280.html
And now checked-in as obvious also its GDB support:
http://sourceware.org/ml/gdb-cvs/2009-03/msg00100.html
Which fixes `info auxv':
[...]
23 AT_SECURE Boolean, was exec setuid-like? 0
25 ??? 0x7fffffffd689
31 AT_EXECFN File name of executable 0x7fffffffefe7 "/foo"
[...]
->
[...]
23 AT_SECURE Boolean, was exec setuid-like? 0
25 AT_RANDOM Address of 16 random bytes 0x7fffffffd679
31 AT_EXECFN File name of executable 0x7fffffffefe7 "/foo"
[...]
Thanks,
Jan
--- src/gdb/ChangeLog 2009/03/15 21:05:41 1.10262
+++ src/gdb/ChangeLog 2009/03/16 09:58:25 1.10263
@@ -1,3 +1,7 @@
+2009-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
+
2009-03-15 Joel Brobecker <brobecker@adacore.com>
* aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
--- src/gdb/auxv.c 2009/02/21 16:14:47 1.18
+++ src/gdb/auxv.c 2009/03/16 09:58:25 1.19
@@ -205,6 +205,7 @@
TAG (AT_UCACHEBSIZE, _("Unified cache block size"), dec);
TAG (AT_IGNOREPPC, _("Entry should be ignored"), dec);
TAG (AT_BASE_PLATFORM, _("String identifying base platform"), str);
+ TAG (AT_RANDOM, _("Address of 16 random bytes"), hex);
TAG (AT_EXECFN, _("File name of executable"), str);
TAG (AT_SECURE, _("Boolean, was exec setuid-like?"), dec);
TAG (AT_SYSINFO, _("Special system info/entry points"), hex);