[Patch] Recognise additional Aux Vector content provided by SH and Alpha.

Iain Sandoe iain@codesourcery.com
Tue Jun 12 15:18:00 GMT 2012


Hi,

Since SH (and Alpha) define a set of extended cache descriptor tags for auxv , we currently get several test suite failures in gdb.base/auxv.exp like so:

    WARNING: Unrecognized tag value: 34   ???                                                 0x8054
 ... etc.

---

The following patch adds defines for these additional tags to elf, and recognises them in GDB.

giving, on sh-linux-gnu:

34   AT_L1I_CACHESHAPE    L1 Instruction cache information 0x8054
35   AT_L1D_CACHESHAPE    L1 Data cache information      0x8054
36   AT_L2_CACHESHAPE     L2 cache information           0xffffffff

---

tested with sh-linux-gnu target (and for binutils --enable-targets=all).
not tested on Alpha.

OK for trunk?
Iain


include/elf:

	* common.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
	AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New defines.

gdb:

	* auxv.c (fprint_target_auxv): Handle extended cache data tags.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mainline-auxv-cache-adds.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20120612/d60b2f0b/attachment.txt>
-------------- next part --------------





More information about the Binutils mailing list