This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Attachment: mainline-auxv-cache-adds.txt
Description: Text document




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]